BugFix for testapi automate job 57/54257/1
authorSakala Venkata Krishna Rohit <rohitsakala@gmail.com>
Wed, 21 Mar 2018 13:27:11 +0000 (18:57 +0530)
committerSakala Venkata Krishna Rohit <rohitsakala@gmail.com>
Wed, 21 Mar 2018 13:36:07 +0000 (19:06 +0530)
The bug was caused because of change in version of python package.
Used inbuilt json function of the requests package to rectify.

Change-Id: If71fe96dcffdd26179dd1d05b9536126a1ddaae5

ci/htmlize/htmlize.py

index c37ebc3..135d401 100644 (file)
@@ -15,9 +15,9 @@ def main(args):
 
     # Merging two specs
     api_response = requests.get(args.api_declaration_url)
-    api_response = json.loads(api_response.content)
+    api_response = api_response.json()
     resource_response = requests.get(args.resource_listing_url)
-    resource_response = json.loads(resource_response.content)
+    resource_response = resource_response.json()
     resource_response['models'] = api_response['models']
     resource_response['apis'] = api_response['apis']