summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-16 17:52:44 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-16 19:32:58 +0800
commit0bdfdeb2430aa6d9cb654583cc84ddabcadadd54 (patch)
tree26dee7ee7dd0cd76a9705001d1d119f59a25bf43 /utils/test/testapi/opnfv_testapi
parent7eb4f218222da336cb460deeffcf3cb6e39e9d07 (diff)
bugfix: /resources.json and /APIs cannot be accessed
1. change the join way of discover_url 2. limit tornado version not to use latest 4.5 Change-Id: I39dfd3b32bf232a7c144087bc9d5f88fb6798ee7 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi/opnfv_testapi')
-rw-r--r--utils/test/testapi/opnfv_testapi/tornado_swagger/views.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/test/testapi/opnfv_testapi/tornado_swagger/views.py b/utils/test/testapi/opnfv_testapi/tornado_swagger/views.py
index ca4f01cfc..42b37483b 100644
--- a/utils/test/testapi/opnfv_testapi/tornado_swagger/views.py
+++ b/utils/test/testapi/opnfv_testapi/tornado_swagger/views.py
@@ -8,7 +8,6 @@
##############################################################################
import inspect
import json
-import os.path
import tornado.template
import tornado.web
@@ -32,9 +31,8 @@ class SwaggerUIHandler(tornado.web.RequestHandler):
return self.static_path
def get(self):
- discovery_url = os.path.join(
- self.base_url,
- self.reverse_url(settings.RESOURCE_LISTING_NAME))
+ resource_url = self.reverse_url(settings.RESOURCE_LISTING_NAME)
+ discovery_url = self.base_url + resource_url
self.render('index.html', discovery_url=discovery_url)