Browse Source

Merge "Remove obsolete json.loads with _parse_resp"

Zuul 1 year ago
parent
commit
71f0ce08dd

+ 3
- 12
murano_tempest_tests/services/application_catalog/application_catalog_client.py View File

@@ -254,10 +254,7 @@ class ApplicationCatalogClient(rest_client.RestClient):
254 254
         uri = 'v1/environments/{0}/services'.format(environment_id)
255 255
         resp, body = self.put(uri, json.dumps(put_body), headers)
256 256
         self.expected_success(200, resp.status)
257
-        # TODO(freerunner): Need to replace json.loads() to _parse_resp
258
-        # method, when fix for https://bugs.launchpad.net/tempest/+bug/1539927
259
-        # will resolved and new version of tempest-lib released.
260
-        return json.loads(body)
257
+        return self._parse_resp(body)
261 258
 
262 259
     def delete_service(self, environment_id, session_id, service_id):
263 260
         headers = self.get_headers()
@@ -279,10 +276,7 @@ class ApplicationCatalogClient(rest_client.RestClient):
279 276
         uri = 'v1/environments/{0}/services'.format(environment_id)
280 277
         resp, body = self.get(uri, headers)
281 278
         self.expected_success(200, resp.status)
282
-        # TODO(freerunner): Need to replace json.loads() to _parse_resp
283
-        # method, when fix for https://bugs.launchpad.net/tempest/+bug/1539927
284
-        # will resolved and new version of tempest-lib released.
285
-        return json.loads(body)
279
+        return self._parse_resp(body)
286 280
 
287 281
     def get_service(self, environment_id, service_id, session_id=None):
288 282
         headers = self.get_headers()
@@ -383,10 +377,7 @@ class ApplicationCatalogClient(rest_client.RestClient):
383 377
         uri = 'v1/templates/{0}/services'.format(env_template_id)
384 378
         resp, body = self.get(uri)
385 379
         self.expected_success(200, resp.status)
386
-        # TODO(freerunner): Need to replace json.loads() to _parse_resp
387
-        # method, when fix for https://bugs.launchpad.net/tempest/+bug/1539927
388
-        # will resolved and new version of tempest-lib released.
389
-        return json.loads(body)
380
+        return self._parse_resp(body)
390 381
 
391 382
     def get_service_in_env_template(self, env_template_name, service_id):
392 383
         uri = 'v1/templates/{0}/services/{1}'.format(env_template_name,

Loading…
Cancel
Save