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 | 2754e19e72487793f1e381147768cf122d399b7b (patch) | |
tree | 9aa302f457fd8736286f813b9ae8118a3e7662eb /testapi/opnfv_testapi/tests | |
parent | 0620b2cbb21714c1a5e485186c46c2c24485ef37 (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 'testapi/opnfv_testapi/tests')
-rw-r--r-- | testapi/opnfv_testapi/tests/unit/test_result.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testapi/opnfv_testapi/tests/unit/test_result.py b/testapi/opnfv_testapi/tests/unit/test_result.py index ae78237..2e0aa36 100644 --- a/testapi/opnfv_testapi/tests/unit/test_result.py +++ b/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): |