From 3362959c733a0e52260bec4dbd13c989c74fea6b Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 5 Aug 2022 09:34:57 -0400 Subject: [PATCH] BB: Use put_json() to reset credentials --- envs/monkey_zoo/blackbox/island_client/monkey_island_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py index f6f5d3c10..f16cca318 100644 --- a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py +++ b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py @@ -113,7 +113,7 @@ class MonkeyIslandClient(object): assert False def _reset_credentials(self): - if self.requests.delete("api/propagation-credentials/configured-credentials").ok: + if self.requests.put_json("api/propagation-credentials/configured-credentials", json=[]).ok: LOGGER.info("Resseting configured credentials after the test.") else: LOGGER.error("Failed to reset configured credentials")