diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-04-06 16:59:19 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-04-06 16:59:19 +0800 |
commit | e06bdb148bca4f89f2666833f0f7949a48f77559 (patch) | |
tree | ebd558e60046a028efd01c5688407801be7f2a2f /utils/test/testapi/opnfv_testapi/tests/unit/test_result.py | |
parent | aa823fd3bbe42ead475217e2a5b947a636cf63dd (diff) |
change not_found to forbidden when db not exist
Change-Id: I1aa61c5d1b057b5a53cf6369b26605867a4d092e
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/tests/unit/test_result.py')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/tests/unit/test_result.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/test/testapi/opnfv_testapi/tests/unit/test_result.py b/utils/test/testapi/opnfv_testapi/tests/unit/test_result.py index ae78237e5..2e0aa3685 100644 --- a/utils/test/testapi/opnfv_testapi/tests/unit/test_result.py +++ b/utils/test/testapi/opnfv_testapi/tests/unit/test_result.py @@ -163,21 +163,21 @@ class TestResultCreate(TestResultBase): req = self.req_d req.pod_name = 'notExistPod' (code, body) = self.create(req) - self.assertEqual(code, httplib.NOT_FOUND) + self.assertEqual(code, httplib.FORBIDDEN) self.assertIn(message.not_found_base, body) def test_noProject(self): req = self.req_d req.project_name = 'notExistProject' (code, body) = self.create(req) - self.assertEqual(code, httplib.NOT_FOUND) + self.assertEqual(code, httplib.FORBIDDEN) self.assertIn(message.not_found_base, body) def test_noTestcase(self): req = self.req_d req.case_name = 'notExistTestcase' (code, body) = self.create(req) - self.assertEqual(code, httplib.NOT_FOUND) + self.assertEqual(code, httplib.FORBIDDEN) self.assertIn(message.not_found_base, body) def test_success(self): |