Skip to content

Commit

Permalink
fix: try fix tests [run-int-tests]
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Kheifets <[email protected]>
  • Loading branch information
ikheifets-splunk committed Sep 12, 2024
1 parent 13d1e47 commit eb611ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
- name: run tests
working-directory: integration_tests
run: |
poetry run pytest --splunk_host="localhost" --splunk_password="changeme2" --trap_external_ip="$(hostname -I | cut -d " " -f1)" --sc4snmp_deployment="microk8s"
poetry run pytest --splunk_host="localhost" --splunk_password="changeme2" --trap_external_ip="$(hostname -I | cut -d " " -f1)" --sc4snmp_deployment="microk8s" -k "trap"
test-integration-compose:
name: Run integration tests in docker compose deployment
Expand Down Expand Up @@ -181,4 +181,4 @@ jobs:
- name: run tests
working-directory: integration_tests
run: |
poetry run pytest --splunk_host="localhost" --splunk_password="changeme2" --trap_external_ip="$(hostname -I | cut -d " " -f1)" --sc4snmp_deployment="docker-compose"
poetry run pytest --splunk_host="localhost" --splunk_password="changeme2" --trap_external_ip="$(hostname -I | cut -d " " -f1)" --sc4snmp_deployment="docker-compose" -k "trap"
5 changes: 5 additions & 0 deletions integration_tests/test_trap_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@


def send_trap(host, port, object_identity, mib_to_load, *var_binds):
try:
UdpTransportTarget((host, port))
except Exception:
raise Exception(UdpTransportTarget.__doc__)

iterator = sendNotification(
SnmpEngine(),
CommunityData("public", mpModel=0),
Expand Down

0 comments on commit eb611ae

Please sign in to comment.