mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
Wait some time after ready before starting all of the tests to allow the container to settle.
This commit is contained in:
+6
-3
@@ -803,15 +803,18 @@ def splunk_container_manager(testing_object:SynchronizedResultsTracker, containe
|
||||
#wait_for_splunk_ready(max_seconds=120)
|
||||
from modules.splunk_sdk import enable_delete_for_admin
|
||||
print("Enabling DELETE for [%s]"%(container_name))
|
||||
while not enable_delete_for_admin(splunk_ip, splunk_port, splunk_password):
|
||||
time.sleep(10)
|
||||
try:
|
||||
while not enable_delete_for_admin(splunk_ip, splunk_port, splunk_password):
|
||||
time.sleep(10)
|
||||
except Exception as e:
|
||||
print("Failure enabling DELETE for container [%s]: [%s].\n\tQuitting..."%(container_name, str(e)))
|
||||
|
||||
print("Successfully enabled DELETE for [%s]"%(container_name))
|
||||
|
||||
#Wait for all of the threads to join here
|
||||
print("Container [%s] setup complete and waiting for other containers to be ready..."%(container_name))
|
||||
testing_object.start_barrier.wait()
|
||||
|
||||
wait_for_splunk_ready(max_seconds=60)
|
||||
while True:
|
||||
#Sleep for a small random time so that containers drift apart and don't synchronize their testing
|
||||
time.sleep(random.randint(1,30))
|
||||
|
||||
Reference in New Issue
Block a user