diff --git a/.github/workflows/pdr_plugin_ci_workflow.yml b/.github/workflows/pdr_plugin_ci_workflow.yml index f8e92be6e..fd345ae2f 100644 --- a/.github/workflows/pdr_plugin_ci_workflow.yml +++ b/.github/workflows/pdr_plugin_ci_workflow.yml @@ -28,6 +28,17 @@ jobs: - name: Run PyLint run: pylint --rcfile=plugins/pdr_deterministic_plugin/.pylintrc plugins/pdr_deterministic_plugin + + - name: Run single plugin instance on background as standalone + run: | + kill -9 isolation_algo.py + sleep 10 + nohup python plugins/pdr_deterministic_plugin/ufm_sim_web_service/isolation_algo.py > /dev/null 2>&1 & - name: Test exclude list with pytest - run: pytest plugins/pdr_deterministic_plugin/tests/exclude_list_tests.py --doctest-modules --junitxml=junit/exclude_list_tests_results.xml --cov=com --cov-report=xml --cov-report=html + run: pytest plugins/pdr_deterministic_plugin/tests/exclude_list_tests.py #--doctest-modules --junitxml=junit/exclude_list_tests_results.xml --cov=com --cov-report=xml --cov-report=html + + - name: Kill plugin process + run: | + kill -9 isolation_algo.py + sleep 10 diff --git a/plugins/pdr_deterministic_plugin/tests/exclude_list_tests.py b/plugins/pdr_deterministic_plugin/tests/exclude_list_tests.py index fc566f3ba..3d44ced8d 100644 --- a/plugins/pdr_deterministic_plugin/tests/exclude_list_tests.py +++ b/plugins/pdr_deterministic_plugin/tests/exclude_list_tests.py @@ -90,8 +90,8 @@ def test_exclude_list_class_methods(): if port.port_name != remove_port.port_name and port.port_name != auto_remove_port.port_name: assert exclude_list.contains(port.port_name) -#pytest.mark.run(order=1) -def no_test_exclude_list_rest_api(): +pytest.mark.run(order=1) +def test_exclude_list_rest_api(): """ Test exclude list inside plugin via REST API """ @@ -114,4 +114,4 @@ def no_test_exclude_list_rest_api(): if __name__ == '__main__': test_exclude_list_class_methods() - #test_exclude_list_rest_api() + test_exclude_list_rest_api()