Skip to content

Commit

Permalink
Merge pull request #359 from balena-io/fix-supervisor-restart_service…
Browse files Browse the repository at this point in the history
…-call

Fix typo in /v2/applications/:appId/restart-service Supervisor API call
  • Loading branch information
flowzone-app[bot] authored May 24, 2024
2 parents 19ec2d0 + 8678bc7 commit 4d65133
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion balena/models/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ def __restart_service():
app_id = device["belongs_to__application"][0]["id"]
request(
method="POST",
path=f"/supervisor/v2/applications/{app_id}/restart_service",
path=f"/supervisor/v2/applications/{app_id}/restart-service",
settings=self.__settings,
body={
"deviceId": device["id"],
Expand Down
8 changes: 4 additions & 4 deletions tests/functional/models/test_environment_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setUpClass(cls):
def tearDownClass(cls):
cls.helper.wipe_organization()

def test_01_get_emtpy_application_vars(self):
def test_01_get_empty_application_vars(self):
for app_var in self.app_vars:
self.assertIsNone(app_var.get(self.app["id"], "DOES_NOT_EXIST"))

Expand Down Expand Up @@ -93,7 +93,7 @@ def setUpClass(cls):
def tearDownClass(cls):
cls.helper.wipe_organization()

def test_01_get_emtpy_device_env_var(self):
def test_01_get_empty_device_env_var(self):
self.assertIsNone(self.device_env_var.get(self.device["id"], "DOES_NOT_EXIST"))

with self.assertRaises(self.helper.balena_exceptions.DeviceNotFound):
Expand Down Expand Up @@ -170,7 +170,7 @@ def setUpClass(cls):
def tearDownClass(cls):
cls.helper.wipe_organization()

def test_01_get_emtpy_device_service_env_var(self):
def test_01_get_empty_device_service_env_var(self):
self.assertIsNone(self.device_service_env_var.get(self.device["id"], self.service["id"], "DOES_NOT_EXIST"))

with self.assertRaises(self.helper.balena_exceptions.ServiceNotFound):
Expand Down Expand Up @@ -288,7 +288,7 @@ def __get_param(self, app, service, name) -> Union[ServiceNaturalKey, int]:
}
return service[name]

def test_01_get_emtpy_service_var(self):
def test_01_get_empty_service_var(self):
for fetch_resource in self.__service_fetch_resources:
param = self.__get_param(self.app, self.service, fetch_resource)
self.assertIsNone(self.service_var.get(param, "DOES_NOT_EXIST"))
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def cb(data):

self.balena.logs.unsubscribe(self.uuid)

def test_06_should_allow_to_unsubiscribe(self):
def test_06_should_allow_to_unsubscribe(self):
results = []

def cb(data):
Expand Down

0 comments on commit 4d65133

Please sign in to comment.