summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-12-27 12:05:00 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-01-17 15:01:44 +0800
commit3bff8a0f6f9c3b6e9b129e3ed4b4d7e922a176fb (patch)
tree7f25287d2fd1dcd1b017d4af9d6515b40fe517e2 /modules
parent7af92e09cf13a7184b49ffebc32e274fe46f0faa (diff)
propose a class in releng for constants (return values, installer names, ...)
JIRA: RELENG-185 Change-Id: Iae566f42b77449778491b83aaf3d72ae120a6dd6 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'modules')
-rw-r--r--modules/opnfv/utils/constants.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/opnfv/utils/constants.py b/modules/opnfv/utils/constants.py
index a69cedda3..ed83488d4 100644
--- a/modules/opnfv/utils/constants.py
+++ b/modules/opnfv/utils/constants.py
@@ -13,3 +13,12 @@ VERSIONS = ['arno', 'brahmaputra', 'colorado', 'danube']
EXIT_OK = 0
EXIT_RUN_ERROR = -1
EXIT_PUSH_TO_TEST_DB_ERROR = -2
+
+class Constants(object):
+ INSTALLERS = ['apex', 'fuel', 'compass', 'joid', "daisy"]
+ VERSIONS = ['arno', 'brahmaputra', 'colorado', 'danube']
+
+ EX_OK = 0
+ EX_RUN_ERROR = -1
+ EX_TEST_FAIL = -2
+ EX_PUSH_RESULT_FAIL = -3