summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/resources
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2017-04-10 01:08:55 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-04-10 01:08:55 +0000
commit20e7e881e5ee2d4247f31e541263c61d30d576a1 (patch)
tree562c1b471b38596b040de15ab9be1b7f890bbb08 /utils/test/testapi/opnfv_testapi/resources
parent132fecf179dfcbaa7a39eabee0a65762600077d1 (diff)
parente06bdb148bca4f89f2666833f0f7949a48f77559 (diff)
Merge "change not_found to forbidden when db not exist"
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/resources')
-rw-r--r--utils/test/testapi/opnfv_testapi/resources/result_handlers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/test/testapi/opnfv_testapi/resources/result_handlers.py b/utils/test/testapi/opnfv_testapi/resources/result_handlers.py
index 609c5ce20..fb5ed9ec7 100644
--- a/utils/test/testapi/opnfv_testapi/resources/result_handlers.py
+++ b/utils/test/testapi/opnfv_testapi/resources/result_handlers.py
@@ -145,20 +145,20 @@ class ResultsCLHandler(GenericResultHandler):
return {'name': data.pod_name}
def pod_error(data):
- return httplib.NOT_FOUND, message.not_found('pod', data.pod_name)
+ return httplib.FORBIDDEN, message.not_found('pod', data.pod_name)
def project_query(data):
return {'name': data.project_name}
def project_error(data):
- return httplib.NOT_FOUND, message.not_found('project',
+ return httplib.FORBIDDEN, message.not_found('project',
data.project_name)
def testcase_query(data):
return {'project_name': data.project_name, 'name': data.case_name}
def testcase_error(data):
- return httplib.NOT_FOUND, message.not_found('testcase',
+ return httplib.FORBIDDEN, message.not_found('testcase',
data.case_name)
miss_checks = ['pod_name', 'project_name', 'case_name']