Skip to content

Commit

Permalink
CI-prod: fix error finding test_vertical_portscan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlyaGomaa committed May 15, 2024
1 parent da15859 commit 333a8e7
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/CI-production-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,6 @@ jobs:
coverage report --include="slips_files/core/database/*"
coverage html --include="slips_files/core/database/*" -d coverage_reports/database
- name: Clear redis cache
run: ./slips.py -cc

- name: Portscan tests
run: |
coverage run --source=./ -m pytest -s tests/integration_tests/test_portscans.py -p no:warnings -vv
coverage report --include="modules/network_discovery/*"
coverage html --include="modules/network_discovery/*" -d coverage_reports/network_discovery
- name: Integration tests
run: |
python3 -m pytest -s tests/integration_tests/test_dataset.py -p no:warnings -vv
# coverage run --source=./ -m pytest -s tests/integration_tests/test_dataset.py -p no:warnings -vv
# coverage report --include="dataset/*"
# coverage html --include="dataset/*" -d coverage_reports/dataset

- name: Flowalerts test
run: |
coverage run --source=./ -m pytest tests/test_flowalerts.py -p no:warnings -vv
Expand Down Expand Up @@ -117,7 +101,7 @@ jobs:
- name: vertical_portscans test
run: |
coverage run --source=./ -m pytest tests/test_vertical_portscan.py -p no:warnings -vv
coverage run --source=./ -m pytest tests/test_vertical_portscans.py -p no:warnings -vv
coverage report --include="modules/network_discovery/vertical_portscan.py*"
coverage html --include="modules/network_discovery/vertical_portscan.py*" -d coverage_reports/vertical_portscan
Expand Down Expand Up @@ -175,6 +159,23 @@ jobs:
coverage report --include="slips_files/core/input.py*"
coverage html --include="slips_files/core/input.py*" -d coverage_reports/input
- name: Clear redis cache
run: ./slips.py -cc

- name: Portscan tests
run: |
coverage run --source=./ -m pytest -s tests/integration_tests/test_portscans.py -p no:warnings -vv
coverage report --include="modules/network_discovery/*"
coverage html --include="modules/network_discovery/*" -d coverage_reports/network_discovery
- name: Integration tests
run: |
python3 -m pytest -s tests/integration_tests/test_dataset.py -p no:warnings -vv
# coverage run --source=./ -m pytest -s tests/integration_tests/test_dataset.py -p no:warnings -vv
# coverage report --include="dataset/*"
# coverage html --include="dataset/*" -d coverage_reports/dataset


- name: Config file tests
run: |
python3 -m pytest -s tests/integration_tests/test_config_files.py -p no:warnings -vv
Expand Down

0 comments on commit 333a8e7

Please sign in to comment.