Island, BB: Rename api/monkey_control to api/monkey-control

This commit is contained in:
Ilija Lazoroski 2022-04-15 13:16:56 +02:00
parent 09c944d52b
commit d2cc056a55
3 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ class MonkeyIslandClient(object):
@avoid_race_condition @avoid_race_condition
def kill_all_monkeys(self): def kill_all_monkeys(self):
response = self.requests.post_json( response = self.requests.post_json(
"api/monkey_control/stop-all-agents", data={"kill_time": time.time()} "api/monkey-control/stop-all-agents", data={"kill_time": time.time()}
) )
if response.ok: if response.ok:
LOGGER.info("Killing all monkeys after the test.") LOGGER.info("Killing all monkeys after the test.")

View File

@ -160,8 +160,8 @@ def init_api_resources(api):
api.add_resource(PropagationCredentials, "/api/propagation-credentials/<string:guid>") api.add_resource(PropagationCredentials, "/api/propagation-credentials/<string:guid>")
api.add_resource(RemoteRun, "/api/remote-monkey") api.add_resource(RemoteRun, "/api/remote-monkey")
api.add_resource(VersionUpdate, "/api/version-update") api.add_resource(VersionUpdate, "/api/version-update")
api.add_resource(StopAgentCheck, "/api/monkey_control/needs-to-stop/<int:monkey_guid>") api.add_resource(StopAgentCheck, "/api/monkey-control/needs-to-stop/<int:monkey_guid>")
api.add_resource(StopAllAgents, "/api/monkey_control/stop-all-agents") api.add_resource(StopAllAgents, "/api/monkey-control/stop-all-agents")
# Resources used by black box tests # Resources used by black box tests
api.add_resource(MonkeyBlackboxEndpoint, "/api/test/monkey") api.add_resource(MonkeyBlackboxEndpoint, "/api/test/monkey")

View File

@ -84,7 +84,7 @@ class MapPageComponent extends AuthComponent {
} }
killAllMonkeys = () => { killAllMonkeys = () => {
this.authFetch('/api/monkey_control/stop-all-agents', this.authFetch('/api/monkey-control/stop-all-agents',
{ {
method: 'POST', method: 'POST',
headers: {'Content-Type': 'application/json'}, headers: {'Content-Type': 'application/json'},