summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/tests/unit/common
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-02-27 14:33:52 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-02-27 14:33:52 +0800
commitfd4b422ccde3795e0fdc0b14651bec62e93275cc (patch)
treeeb73c0eeaeaf987900e51a19baa46e113297be78 /testapi/opnfv_testapi/tests/unit/common
parent0596b593b7486e9e7509c34855f2c31fcd5ab9a2 (diff)
make unittest cover server.py in TestAPI
Change-Id: Id379e6786e1f61fb1032f80636da107156e68fb5 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/tests/unit/common')
-rw-r--r--testapi/opnfv_testapi/tests/unit/common/normal.ini17
1 files changed, 17 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/tests/unit/common/normal.ini b/testapi/opnfv_testapi/tests/unit/common/normal.ini
new file mode 100644
index 0000000..77cc6c6
--- /dev/null
+++ b/testapi/opnfv_testapi/tests/unit/common/normal.ini
@@ -0,0 +1,17 @@
+# to add a new parameter in the config file,
+# the CONF object in config.ini must be updated
+[mongo]
+# URL of the mongo DB
+# 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
+authenticate = False
+
+[swagger]
+base_url = http://localhost:8000