From 1f44176342bdc4daa0248444fd424099f72063c1 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Fri, 14 Apr 2017 17:15:03 +0800 Subject: Add usage of testapi client Change-Id: Ifacc61c5353e3975e625bb2843972cba6be79398 Signed-off-by: Yujun Zhang --- qtip/reporter/testapi.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'qtip') 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', -- cgit 1.2.3-korg