summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-14 17:15:03 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-14 20:51:36 +0800
commit1f44176342bdc4daa0248444fd424099f72063c1 (patch)
tree6f4be10d60dbbb516e70682b4b9102234de513ab
parent57aa1e51811e4da4241c329e5594e962c18d11d2 (diff)
Add usage of testapi client
Change-Id: Ifacc61c5353e3975e625bb2843972cba6be79398 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
-rw-r--r--qtip/reporter/testapi.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/qtip/reporter/testapi.py b/qtip/reporter/testapi.py
index 512dadde..2e4205ea 100644
--- a/qtip/reporter/testapi.py
+++ b/qtip/reporter/testapi.py
@@ -7,8 +7,18 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-import requests
+# OPNFV Testapi Client
+#
+# API url: http://testresults.opnfv.org/test/api/v1
+# API spec:
+# - http://testresults.opnfv.org/test/swagger/spec.html#!/spec/queryTestResults
+# - http://testresults.opnfv.org/test/swagger/spec.html#!/spec/createTestResult
+# Login:
+# username: opnfv
+# password: contact admin
+# Self host: https://github.com/opnfv/releng/tree/master/utils/test/testapi/deployment
+import requests
payload_template = {'project_name',
'case_name',