Skip to content

Commit

Permalink
test: test [run-int-tests]
Browse files Browse the repository at this point in the history
  • Loading branch information
ajasnosz committed Apr 25, 2024
1 parent 7075179 commit 1602ba5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integration_tests/test_poller_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,29 +420,29 @@ def setup_small_walk_with_full_walk_enabled(request):
},
}
update_profiles(profile)
update_file([f"{trap_external_ip},,2c,public,,,20,walk1,f,"], "inventory.yaml")
update_file([f"{trap_external_ip},,2c,public,,,1810,walk1,f,"], "inventory.yaml")
upgrade_helm(["inventory.yaml", "profiles.yaml"])
time.sleep(30)
yield
update_file([f"{trap_external_ip},,2c,public,,,20,walk1,f,t"], "inventory.yaml")
update_file([f"{trap_external_ip},,2c,public,,,1810,walk1,f,t"], "inventory.yaml")
upgrade_helm(["inventory.yaml"])
time.sleep(20)


@pytest.mark.usefixtures("setup_small_walk_with_full_walk_enabled")
class TestSmallWalkWithFullWalkEnabled:
def test_check_if_full_walk_is_done_with_profile_set(self, setup_splunk):
time.sleep(20)
time.sleep(30)
search_string = (
"""| mpreview index=netmetrics earliest=-20s | search "TCP-MIB" """
"""| mpreview index=netmetrics earliest=-30s | search "TCP-MIB" """
)
result_count, metric_count = run_retried_single_search(
setup_splunk, search_string, 1
)
assert result_count > 0
assert metric_count > 0
search_string = (
"""| mpreview index=netmetrics earliest=-20s | search "IP-MIB" """
"""| mpreview index=netmetrics earliest=-30s | search "IP-MIB" """
)
result_count, metric_count = run_retried_single_search(
setup_splunk, search_string, 2
Expand Down

0 comments on commit 1602ba5

Please sign in to comment.