diff --git a/tests/core/authbasic/main.py b/tests/core/authbasic/main.py index 2ffb1afe7..987cfd5b4 100644 --- a/tests/core/authbasic/main.py +++ b/tests/core/authbasic/main.py @@ -51,6 +51,8 @@ try: print("ℹ️ Navigating to http://www.example.com ...", flush=True) driver.get("http://www.example.com") + sleep(2) + try: driver.find_element(By.XPATH, "//img[@alt='NGINX Logo']") except NoSuchElementException: @@ -85,6 +87,8 @@ try: print("❌ The page is accessible without auth-basic ...", flush=True) exit(1) + sleep(2) + print( f"ℹ️ Trying to access http://{auth_basic_username}:{auth_basic_password}@www.example.com ...", flush=True, diff --git a/tests/core/badbehavior/main.py b/tests/core/badbehavior/main.py index 3e7cee3e3..4e3c2cb88 100644 --- a/tests/core/badbehavior/main.py +++ b/tests/core/badbehavior/main.py @@ -50,6 +50,7 @@ try: "http://www.example.com/?id=/etc/passwd", headers={"Host": "www.example.com"}, ) + sleep(1) sleep(1) diff --git a/tests/core/greylist/main.py b/tests/core/greylist/main.py index c41afe570..869414646 100644 --- a/tests/core/greylist/main.py +++ b/tests/core/greylist/main.py @@ -52,6 +52,8 @@ try: print(f"ℹ️ Status code: {status_code}", flush=True) + sleep(2) + if status_code == 403: if not use_greylist: print( @@ -95,6 +97,8 @@ try: ) exit(1) + sleep(2) + print("✅ Request was not rejected, User Agent is in the greylist ...") print( "ℹ️ Sending a request to http://www.example.com/?id=/etc/passwd with User-Agent BunkerBot ...", @@ -128,6 +132,8 @@ try: ) exit(1) + sleep(2) + print("✅ Request was not rejected, URI is in the greylist ...") print( "ℹ️ Sending a request to http://www.example.com/admin/?id=/etc/passwd ...",