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 7b5389f44..cba01a488 100644 --- a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py +++ b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py @@ -49,7 +49,7 @@ class MonkeyIslandClient(object): @avoid_race_condition def kill_all_monkeys(self): 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: LOGGER.info("Killing all monkeys after the test.") diff --git a/monkey/monkey_island/cc/app.py b/monkey/monkey_island/cc/app.py index cd3538cce..792888a19 100644 --- a/monkey/monkey_island/cc/app.py +++ b/monkey/monkey_island/cc/app.py @@ -160,8 +160,8 @@ def init_api_resources(api): api.add_resource(PropagationCredentials, "/api/propagation-credentials/") api.add_resource(RemoteRun, "/api/remote-monkey") api.add_resource(VersionUpdate, "/api/version-update") - api.add_resource(StopAgentCheck, "/api/monkey_control/needs-to-stop/") - api.add_resource(StopAllAgents, "/api/monkey_control/stop-all-agents") + api.add_resource(StopAgentCheck, "/api/monkey-control/needs-to-stop/") + api.add_resource(StopAllAgents, "/api/monkey-control/stop-all-agents") # Resources used by black box tests api.add_resource(MonkeyBlackboxEndpoint, "/api/test/monkey") diff --git a/monkey/monkey_island/cc/ui/src/components/pages/MapPage.js b/monkey/monkey_island/cc/ui/src/components/pages/MapPage.js index 4d1899360..13db80e25 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/MapPage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/MapPage.js @@ -84,7 +84,7 @@ class MapPageComponent extends AuthComponent { } killAllMonkeys = () => { - this.authFetch('/api/monkey_control/stop-all-agents', + this.authFetch('/api/monkey-control/stop-all-agents', { method: 'POST', headers: {'Content-Type': 'application/json'},