From 15358322791818e7684b0560ec2c49026d00af1f Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 15 Apr 2022 12:36:12 +0200 Subject: [PATCH] Island, BB: Rename clear_caches endpoint to clear-caches --- envs/monkey_zoo/blackbox/island_client/monkey_island_client.py | 2 +- monkey/monkey_island/cc/app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 d203d8f9c..7b5389f44 100644 --- a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py +++ b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py @@ -117,6 +117,6 @@ class MonkeyIslandClient(object): :raises: If error (by error code), raises the error :return: The response """ - response = self.requests.get("api/test/clear_caches") + response = self.requests.get("api/test/clear-caches") response.raise_for_status() return response diff --git a/monkey/monkey_island/cc/app.py b/monkey/monkey_island/cc/app.py index b4b884fc7..045d787b1 100644 --- a/monkey/monkey_island/cc/app.py +++ b/monkey/monkey_island/cc/app.py @@ -165,7 +165,7 @@ def init_api_resources(api): # Resources used by black box tests api.add_resource(MonkeyBlackboxEndpoint, "/api/test/monkey") - api.add_resource(ClearCaches, "/api/test/clear_caches") + api.add_resource(ClearCaches, "/api/test/clear-caches") api.add_resource(LogBlackboxEndpoint, "/api/test/log") api.add_resource(TelemetryBlackboxEndpoint, "/api/test/telemetry")