From ba60be3a74f28f285d800b6c1292ed0ed132bac9 Mon Sep 17 00:00:00 2001 From: Vitaly Gavensky Date: Mon, 20 May 2024 18:59:19 +0300 Subject: [PATCH] Rest API test (initial steps) --- .github/workflows/pdr_plugin_ci_workflow.yml | 2 +- .../tests/exclude_list_rest_api_tests.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pdr_plugin_ci_workflow.yml b/.github/workflows/pdr_plugin_ci_workflow.yml index 2a34e5b08..fba71e1c8 100644 --- a/.github/workflows/pdr_plugin_ci_workflow.yml +++ b/.github/workflows/pdr_plugin_ci_workflow.yml @@ -49,6 +49,6 @@ jobs: run: | sudo bash $PLUGIN_RELATIVE_PATH/.pytest/run_pdr_standalone_pytest.sh echo "Starting simulated test" - python $PLUGIN_RELATIVE_PATH/tests/simulation_telemetry.py + pytest -s $PLUGIN_RELATIVE_PATH/tests/simulation_telemetry.py --cov=$PLUGIN_RELATIVE_PATH echo "Terminating standalone PDR process" pkill -9 -f isolation_algo.py 2>/dev/null || true diff --git a/plugins/pdr_deterministic_plugin/tests/exclude_list_rest_api_tests.py b/plugins/pdr_deterministic_plugin/tests/exclude_list_rest_api_tests.py index 2d74bb8f7..16997d542 100644 --- a/plugins/pdr_deterministic_plugin/tests/exclude_list_rest_api_tests.py +++ b/plugins/pdr_deterministic_plugin/tests/exclude_list_rest_api_tests.py @@ -43,8 +43,6 @@ def test_exclude_list_rest_api(): assert port_name in response.text print(" - test: add ports to exclusion list -- PASS") - # - if __name__ == '__main__': test_exclude_list_rest_api()