diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-10-20 15:21:59 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-10-20 15:21:59 +0800 |
commit | 5b2b99e43eba2e7dfd2694ce165c1945642c3838 (patch) | |
tree | 4857fab1ebc90e96be984b5bf41b6f5181955370 /testapi/opnfv_testapi/resources/handlers.py | |
parent | ac50de317715d09a2b6583ecbecc212338df6df7 (diff) |
criteria field must be 'PASS/FAIL'
criteria must be fix with 'PASS/FAIL', case insensitive
or else, BADREQUEST exception will be raises
JIRA: RELENG-327
Change-Id: Ic648b9d38937fc63924e42cfdf5345cdaa32e1ed
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/resources/handlers.py')
-rw-r--r-- | testapi/opnfv_testapi/resources/handlers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/resources/handlers.py b/testapi/opnfv_testapi/resources/handlers.py index 8e5dab2..6c7a819 100644 --- a/testapi/opnfv_testapi/resources/handlers.py +++ b/testapi/opnfv_testapi/resources/handlers.py @@ -79,6 +79,7 @@ class GenericApiHandler(web.RequestHandler): @check.valid_token @check.no_body @check.miss_fields + @check.values_check @check.carriers_exist @check.new_not_exists def _create(self, **kwargs): |