intracom-telecom-sdn/nstat

View on GitHub
stress_test/report_spec_templates.py

Summary

Maintainability
F
1 wk
Test Coverage

Showing 9 of 9 total issues

File report_spec_templates.py has 674 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright (c) 2015 Intracom S.A. Telecom Solutions. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v1.0 which accompanies this distribution,
# and is available at http://www.eclipse.org/legal/epl-v10.html
Severity: Major
Found in stress_test/report_spec_templates.py - About 1 day to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    def sb_active_scalability_mtcbench(self, results_json_file):
    """
    Returns the report specification for the Southbound active scalability
    test with MT-Cbench
     
    Severity: Major
    Found in stress_test/report_spec_templates.py and 1 other location - About 3 days to fix
    stress_test/report_spec_templates.py on lines 114..206

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    def sb_active_stability_mtcbench(self, results_json_file):
    """
    Returns the report specification object for SouthBound active
    stabiility test with MT-Cbench.
     
    Severity: Major
    Found in stress_test/report_spec_templates.py and 1 other location - About 3 days to fix
    stress_test/report_spec_templates.py on lines 21..112

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    [stress_test.report_spec.TableSpec(
    '2d',
    'Test results',
    [('global_sample_id', 'Sample ID'),
    ('timestamp', 'Sample timestamp (seconds)'),
    Severity: Major
    Found in stress_test/report_spec_templates.py and 1 other location - About 1 day to fix
    stress_test/report_spec_templates.py on lines 550..592

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    [stress_test.report_spec.TableSpec(
    '2d', 'Test results',
    [('global_sample_id', 'Sample ID'),
    ('timestamp', 'Sample timestamp (seconds)'),
    ('date', 'Sample timestamp (date)'),
    Severity: Major
    Found in stress_test/report_spec_templates.py and 1 other location - About 1 day to fix
    stress_test/report_spec_templates.py on lines 259..313

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    [('controller_name', 'Controller name'),
    ('controller_build_handler', 'Controller build script'),
    ('controller_start_handler', 'Controller start script'),
    ('controller_stop_handler', 'Controller stop script'),
    ('controller_status_handler', 'Controller status script'),
    Severity: Major
    Found in stress_test/report_spec_templates.py and 1 other location - About 7 hrs to fix
    stress_test/report_spec_templates.py on lines 367..406

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    [('global_sample_id', 'Sample ID'),
    ('timestamp', 'Sample timestamp (seconds)'),
    ('date', 'Sample timestamp (date)'),
    ('of_out_bytes_per_sec',
    'Outgoing controller throughput '
    Severity: Major
    Found in stress_test/report_spec_templates.py and 1 other location - About 7 hrs to fix
    stress_test/report_spec_templates.py on lines 611..646

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    [('number_of_samples', 'Test repeats'),
    ('controller_name', 'Controller name'),
    ('controller_build_handler', 'Controller build script'),
    ('controller_start_handler', 'Controller start script'),
    ('controller_stop_handler', 'Controller stop script'),
    Severity: Major
    Found in stress_test/report_spec_templates.py and 1 other location - About 7 hrs to fix
    stress_test/report_spec_templates.py on lines 464..494

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    [('global_sample_id', 'Sample ID'),
    ('timestamp', 'Sample timestamp (seconds)'),
    ('date', 'Sample timestamp (date)'),
    ('discovered_switches_error_code', 'Error code'),
    ('successful_bootup_time',
    Severity: Major
    Found in stress_test/report_spec_templates.py and 1 other location - About 7 hrs to fix
    stress_test/report_spec_templates.py on lines 514..549
    Category
    Status