diff --git a/src/rest/test/test_internal_controller.py b/src/rest/test/test_internal_controller.py index ecaa0cb3f585bf51f90cd1a68e4ef2768c1e14a4..328a684cbf0db428108f3e6cc0d235f0fd27bf09 100644 --- a/src/rest/test/test_internal_controller.py +++ b/src/rest/test/test_internal_controller.py @@ -20,7 +20,7 @@ class TestInternalController(BaseTestCase): Set active engine """ response = self.client.open( - '/engine/{engineNumber}/activate'.format(engine_number=2), + '/api/v1/engine/{engineNumber}/activate'.format(engine_number=2), method='PUT') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) @@ -31,7 +31,7 @@ class TestInternalController(BaseTestCase): Get active engine """ response = self.client.open( - '/engine/current', + '/api/v1/engine/current', method='GET') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) @@ -42,7 +42,7 @@ class TestInternalController(BaseTestCase): Get most recent health info """ response = self.client.open( - '/engine/{engineNumber}/health'.format(engine_number=2), + '/api/v1/engine/{engineNumber}/health'.format(engine_number=2), method='GET') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) @@ -53,7 +53,7 @@ class TestInternalController(BaseTestCase): Report for one month """ response = self.client.open( - '/report/{year_month}'.format(year_month='year_month_example'), + '/api/v1/report/{year_month}'.format(year_month='year_month_example'), method='GET') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) @@ -64,7 +64,7 @@ class TestInternalController(BaseTestCase): Log health info """ response = self.client.open( - '/engine/{engineNumber}/health'.format(engine_number=2), + '/api/v1/engine/{engineNumber}/health'.format(engine_number=2), method='POST') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) diff --git a/src/rest/test/test_public_controller.py b/src/rest/test/test_public_controller.py index 3b7b93cb5719e03fc444346edce9e2065099239d..dac7390a1033fe230a3e2ecdfb1a324b8832f98b 100644 --- a/src/rest/test/test_public_controller.py +++ b/src/rest/test/test_public_controller.py @@ -19,7 +19,7 @@ class TestPublicController(BaseTestCase): Get current playlist """ response = self.client.open( - '/playlist/current', + '/api/v1/playlist/current', method='GET') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) @@ -30,7 +30,7 @@ class TestPublicController(BaseTestCase): Get current track """ response = self.client.open( - '/trackservice/current', + '/api/v1/trackservice/current', method='GET') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8')) @@ -41,7 +41,7 @@ class TestPublicController(BaseTestCase): Get a single track by ID """ response = self.client.open( - '/trackservice/{trackId}'.format(track_id=56), + '/api/v1/trackservice/{trackId}'.format(track_id=56), method='GET') self.assert200(response, 'Response body is : ' + response.data.decode('utf-8'))