summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/common/message.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-10-20 15:21:59 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-10-20 15:21:59 +0800
commitc0de44528cb8fdfb7d29158909a589db3628d889 (patch)
tree3662a1b185b3a7001ad64a90677841edfb0079a7 /utils/test/testapi/opnfv_testapi/common/message.py
parentb7972b02c75fd3a6b4d88ccfb3a1581c21868601 (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 'utils/test/testapi/opnfv_testapi/common/message.py')
-rw-r--r--utils/test/testapi/opnfv_testapi/common/message.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/test/testapi/opnfv_testapi/common/message.py b/utils/test/testapi/opnfv_testapi/common/message.py
index 8b5c3fb7a..3e14f7258 100644
--- a/utils/test/testapi/opnfv_testapi/common/message.py
+++ b/utils/test/testapi/opnfv_testapi/common/message.py
@@ -26,6 +26,10 @@ def missing(name):
return '{} Missing'.format(name)
+def invalid_value(name, options):
+ return '{} must be in {}'.format(name, options)
+
+
def exist(key, value):
return '{} [{}] {}'.format(key, value, exist_base)