Skip to content

Commit

Permalink
Rest API test (initial steps)
Browse files Browse the repository at this point in the history
  • Loading branch information
vg12345 committed May 20, 2024
1 parent cd98b29 commit e32db53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pdr_plugin_ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,21 @@ jobs:
run: pylint --rcfile=plugins/pdr_deterministic_plugin/.pylintrc plugins/pdr_deterministic_plugin

- name: Run exclusion list class test
run: pytest -s plugins/pdr_deterministic_plugin/tests/exclude_list_class_tests.py
timeout-minutes: 5
run: pytest -s plugins/pdr_deterministic_plugin/tests/exclude_list_class_tests.py --cov=plugins/pdr_deterministic_plugin

- name: Test exclusion list REST API
timeout-minutes: 5
run: |
sudo bash plugins/pdr_deterministic_plugin/.pytest/run_pdr_standalone_pytest.sh
echo "Test exclusion list REST API methods"
sleep 10
pytest -s plugins/pdr_deterministic_plugin/tests/exclude_list_rest_api_tests.py
pytest -s plugins/pdr_deterministic_plugin/tests/exclude_list_rest_api_tests.py --cov=plugins/pdr_deterministic_plugin
echo "Terminating standalone PDR process"
pkill -9 -f isolation_algo.py 2>/dev/null || true
- name: Run full simulation test
timeout-minutes: 10
run: |
sudo bash plugins/pdr_deterministic_plugin/.pytest/run_pdr_standalone_pytest.sh
echo "Starting simulated test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit e32db53

Please sign in to comment.