From 477e80bfbae2d0f23638f18d1e1919dc7c30f8a1 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 3 Oct 2022 07:52:40 -0400 Subject: [PATCH] BB: Remove disused MonkeyIslandClient.find_log_in_db() --- .../blackbox/island_client/monkey_island_client.py | 7 ------- 1 file changed, 7 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 ad30ef7f2..bc8115db7 100644 --- a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py +++ b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py @@ -17,7 +17,6 @@ GET_LOG_ENDPOINT = "api/agent-logs" GET_MACHINES_ENDPOINT = "api/machines" MONKEY_TEST_ENDPOINT = "api/test/monkey" TELEMETRY_TEST_ENDPOINT = "api/test/telemetry" -LOG_TEST_ENDPOINT = "api/test/log" LOGGER = logging.getLogger(__name__) @@ -178,12 +177,6 @@ class MonkeyIslandClient(object): return response.json() - def find_log_in_db(self, query): - response = self.requests.get( - LOG_TEST_ENDPOINT, MonkeyIslandClient.form_find_query_for_request(query) - ) - return MonkeyIslandClient.get_test_query_results(response) - @staticmethod def form_find_query_for_request(query: Union[dict, None]) -> dict: return {"find_query": json_util.dumps(query)}