summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/etc
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-09 02:10:01 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-09 02:17:39 +0800
commitcdff7d8d41693971f4c5dc8dd18d6907a5e31937 (patch)
treec6d0f727acb878544ead1e8a864338490c16d03f /utils/test/result_collection_api/etc
parent354761f94cdd7283740a487d5384ef9b233b66c3 (diff)
solve access testresults.opnfv.org/swagger/spec.html fail issue in testAPI
add swagger configuration in config.ini add swagger.docs() process in server.py add swagger configuration parse in config.py add basePath() in settings.py change 'basePath' item assignment in views.py JIRA: FUNCTEST-305 Change-Id: I049991d4d53b78755ee971021ec0ad2458f5da60 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api/etc')
-rw-r--r--utils/test/result_collection_api/etc/config.ini6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/test/result_collection_api/etc/config.ini b/utils/test/result_collection_api/etc/config.ini
index f703cc6c4..16346bf36 100644
--- a/utils/test/result_collection_api/etc/config.ini
+++ b/utils/test/result_collection_api/etc/config.ini
@@ -5,8 +5,12 @@
# Mongo auth url => mongodb://user1:pwd1@host1/?authSource=db1
url = mongodb://127.0.0.1:27017/
dbname = test_results_collection
+
[api]
# Listening port
port = 8000
# With debug_on set to true, error traces will be shown in HTTP responses
-debug = True \ No newline at end of file
+debug = True
+
+[swagger]
+base_url = http://testresults.opnfv.org/test \ No newline at end of file