diff --git a/end2end/spring_boot_mysql.py b/end2end/spring_boot_mysql.py index fb99f2e1..94161068 100644 --- a/end2end/spring_boot_mysql.py +++ b/end2end/spring_boot_mysql.py @@ -47,12 +47,15 @@ # Test forceProtectionOff make_post_request(urls["enabled"], payloads["unsafe"], status_code=500) -event_handler.set_protection(True, False) +# Tests with /api/* and method * protection forced off. +event_handler.set_protection(False, True) time.sleep(70) # Wait for config to be fetched make_post_request(urls["enabled"], payloads["unsafe"], status_code=200) -event_handler.set_protection(False, True) +# Tests with /api/pets/create protection forced off. +event_handler.set_protection(True, False) time.sleep(70) # Wait for config to be fetched make_post_request(urls["enabled"], payloads["unsafe"], status_code=200) + print("✅ Tested force protection off")