Code Review
/
releng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7af92e0
)
propose a class in releng for constants (return values, installer names, ...)
99/26499/4
author
SerenaFeng
<feng.xiaowei@zte.com.cn>
Tue, 27 Dec 2016 04:05:00 +0000
(12:05 +0800)
committer
SerenaFeng
<feng.xiaowei@zte.com.cn>
Tue, 17 Jan 2017 07:01:44 +0000
(15:01 +0800)
JIRA: RELENG-185
Change-Id: Iae566f42b77449778491b83aaf3d72ae120a6dd6
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
modules/opnfv/utils/constants.py
patch
|
blob
|
history
diff --git
a/modules/opnfv/utils/constants.py
b/modules/opnfv/utils/constants.py
index
a69cedd
..
ed83488
100644
(file)
--- 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