Skip to content

Commit

Permalink
Switch order and add extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bitterpanda63 committed Feb 7, 2025
1 parent 41bae61 commit cbb2124
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions end2end/spring_boot_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit cbb2124

Please sign in to comment.