forked from p15670423/monkey
BB: Remove disused MonkeyIslandClient.find_log_in_db()
This commit is contained in:
parent
fc24d80410
commit
477e80bfba
|
@ -17,7 +17,6 @@ GET_LOG_ENDPOINT = "api/agent-logs"
|
||||||
GET_MACHINES_ENDPOINT = "api/machines"
|
GET_MACHINES_ENDPOINT = "api/machines"
|
||||||
MONKEY_TEST_ENDPOINT = "api/test/monkey"
|
MONKEY_TEST_ENDPOINT = "api/test/monkey"
|
||||||
TELEMETRY_TEST_ENDPOINT = "api/test/telemetry"
|
TELEMETRY_TEST_ENDPOINT = "api/test/telemetry"
|
||||||
LOG_TEST_ENDPOINT = "api/test/log"
|
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -178,12 +177,6 @@ class MonkeyIslandClient(object):
|
||||||
|
|
||||||
return response.json()
|
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
|
@staticmethod
|
||||||
def form_find_query_for_request(query: Union[dict, None]) -> dict:
|
def form_find_query_for_request(query: Union[dict, None]) -> dict:
|
||||||
return {"find_query": json_util.dumps(query)}
|
return {"find_query": json_util.dumps(query)}
|
||||||
|
|
Loading…
Reference in New Issue