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 2c319f4 commit e1c4631
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pdr_plugin_ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ 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 --cov=plugins/pdr_deterministic_plugin/ufm_sim_web_service/exclude_list.py
run: pytest -s plugins/pdr_deterministic_plugin/tests/exclude_list_class_tests.py --cov=plugins/pdr_deterministic_plugin

- name: Test exclusion list REST API
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 --cov=plugins/pdr_deterministic_plugin/ufm_sim_web_service/api/pdr_plugin_api.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
Expand Down
3 changes: 1 addition & 2 deletions plugins/pdr_deterministic_plugin/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ flask<=3.0.3
numpy<=1.26.4
pandas<=2.2.2
pytest<=8.2.0
pytest-cov
requests<=2.31.0
twisted<=22.1.0
flask-restful<=0.3.10
flask_restful<=0.3.10
tzlocal<=4.2
jsonschema<=4.5.1

0 comments on commit e1c4631

Please sign in to comment.