Skip to content

Commit

Permalink
Experiment with standalone plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
vg12345 committed May 16, 2024
1 parent aad96f7 commit e15b99b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/pdr_plugin_ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions plugins/pdr_deterministic_plugin/tests/exclude_list_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand All @@ -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()

0 comments on commit e15b99b

Please sign in to comment.