summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-17 02:39:04 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-04-17 02:39:04 +0000
commitbbcbb7f54096c05d83c982d6784646882e2c276a (patch)
tree11ccef10a0dfea0edc4190f8f3d510c4c798000a
parented6b63465482b30fd6cf995d2a3167a62a864346 (diff)
parent1f44176342bdc4daa0248444fd424099f72063c1 (diff)
Merge "Add usage of testapi client"
-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',