summaryrefslogtreecommitdiffstats
path: root/result_collection_api/opnfv_testapi/tests/unit
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-07-27 12:38:13 +0800
committerJose Lausuch <jose.lausuch@ericsson.com>2016-07-27 09:28:05 +0000
commit9a5639c835c4ffe64fb866cd1bfeab421bbfdbe6 (patch)
treea20a4f2246db4def5253f78b1acc918b4480d958 /result_collection_api/opnfv_testapi/tests/unit
parent7f623d269e76c3c720891e90a015db2b7f544d10 (diff)
update testapi server in testresults.opnfv.org
support body of post results carries no trust_indicator add unittest of no trust_indicator in post results body specify changes in db JIRA: FUNCTEST-391 Change-Id: Ic61a5edbad1bca7689d618761bca94ef69dea80b Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'result_collection_api/opnfv_testapi/tests/unit')
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/test_result.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_result.py b/result_collection_api/opnfv_testapi/tests/unit/test_result.py
index 98ef7c0..eee06c6 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/test_result.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/test_result.py
@@ -182,6 +182,24 @@ class TestResultCreate(TestResultBase):
self.assertEqual(code, HTTP_OK)
self.assert_href(body)
+ def test_no_ti(self):
+ req = ResultCreateRequest(pod_name=self.pod,
+ project_name=self.project,
+ case_name=self.case,
+ installer=self.installer,
+ version=self.version,
+ start_date=self.start_date,
+ stop_date=self.stop_date,
+ details=self.details.format(),
+ build_tag=self.build_tag,
+ scenario=self.scenario,
+ criteria=self.criteria)
+ (code, res) = self.create(req)
+ _id = res.href.split('/')[-1]
+ self.assertEqual(code, HTTP_OK)
+ code, body = self.get(_id)
+ self.assert_res(code, body, req)
+
class TestResultGet(TestResultBase):
def test_getOne(self):