Loading run_local_tests.sh +2 −2 Original line number Diff line number Diff line #!/bin/bash cd $(dirname $0)/src RCFILE=~/projects/teraflow/controller/coverage/.coveragerc COVERAGEFILE=~/projects/teraflow/controller/coverage/.coverage RCFILE=~/teraflow/controller/coverage/.coveragerc COVERAGEFILE=~/teraflow/controller/coverage/.coverage # Run unitary tests and analyze coverage of code at same time Loading src/centralizedcybersecurity/tests/test_unitary.py +4 −0 Original line number Diff line number Diff line Loading @@ -37,18 +37,22 @@ def centralized_cybersecurity_client(centralized_cybersecurity_service): yield _client _client.close() @pytest.fixture(scope='session') def test_notify_service_update(centralized_cybersecurity_client: CentralizedCybersecurityClient): service = Service() centralized_cybersecurity_client.NotifyServiceUpdate(service) @pytest.fixture(scope='session') def test_detect_attack(centralized_cybersecurity_client: CentralizedCybersecurityClient): request = Empty() centralized_cybersecurity_client.DetectAttack(request) @pytest.fixture(scope='session') def test_report_summarized_kpi(centralized_cybersecurity_client: CentralizedCybersecurityClient): kpi_list = KpiList() centralized_cybersecurity_client.ReportSummarizedKpi(kpi_list) @pytest.fixture(scope='session') def test_report_kpi(centralized_cybersecurity_client: CentralizedCybersecurityClient): kpi_list = KpiList() centralized_cybersecurity_client.ReportKpi(kpi_list) Loading
run_local_tests.sh +2 −2 Original line number Diff line number Diff line #!/bin/bash cd $(dirname $0)/src RCFILE=~/projects/teraflow/controller/coverage/.coveragerc COVERAGEFILE=~/projects/teraflow/controller/coverage/.coverage RCFILE=~/teraflow/controller/coverage/.coveragerc COVERAGEFILE=~/teraflow/controller/coverage/.coverage # Run unitary tests and analyze coverage of code at same time Loading
src/centralizedcybersecurity/tests/test_unitary.py +4 −0 Original line number Diff line number Diff line Loading @@ -37,18 +37,22 @@ def centralized_cybersecurity_client(centralized_cybersecurity_service): yield _client _client.close() @pytest.fixture(scope='session') def test_notify_service_update(centralized_cybersecurity_client: CentralizedCybersecurityClient): service = Service() centralized_cybersecurity_client.NotifyServiceUpdate(service) @pytest.fixture(scope='session') def test_detect_attack(centralized_cybersecurity_client: CentralizedCybersecurityClient): request = Empty() centralized_cybersecurity_client.DetectAttack(request) @pytest.fixture(scope='session') def test_report_summarized_kpi(centralized_cybersecurity_client: CentralizedCybersecurityClient): kpi_list = KpiList() centralized_cybersecurity_client.ReportSummarizedKpi(kpi_list) @pytest.fixture(scope='session') def test_report_kpi(centralized_cybersecurity_client: CentralizedCybersecurityClient): kpi_list = KpiList() centralized_cybersecurity_client.ReportKpi(kpi_list)