Skip to content

Commit

Permalink
test: test [run-int-tests] [run-ui-tests]
Browse files Browse the repository at this point in the history
  • Loading branch information
ajasnosz committed Apr 26, 2024
1 parent 94f3a47 commit c845843
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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,,,1810,walk1,f,"], "inventory.yaml")
update_file([f"{trap_external_ip},,2c,public,,,20,walk1,f,"], "inventory.yaml")
upgrade_helm(["inventory.yaml", "profiles.yaml"])
time.sleep(30)
time.sleep(20)
yield
update_file([f"{trap_external_ip},,2c,public,,,1810,walk1,f,t"], "inventory.yaml")
update_file([f"{trap_external_ip},,2c,public,,,20,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(30)
time.sleep(20)
search_string = (
"""| mpreview index=netmetrics earliest=-30s | search "TCP-MIB" """
"""| mpreview index=netmetrics earliest=-40s | 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=-30s | search "IP-MIB" """
"""| mpreview index=netmetrics earliest=-40s | search "IP-MIB" """
)
result_count, metric_count = run_retried_single_search(
setup_splunk, search_string, 2
Expand Down

0 comments on commit c845843

Please sign in to comment.