propose a class in releng for constants (return values, installer names, ...)
[releng.git] / modules / opnfv / utils / constants.py
1 #!/usr/bin/env python
2
3 # Copyright (c) 2016 Orange and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9
10 INSTALLERS = ['apex', 'fuel', 'compass', 'joid', "daisy"]
11 VERSIONS = ['arno', 'brahmaputra', 'colorado', 'danube']
12
13 EXIT_OK = 0
14 EXIT_RUN_ERROR = -1
15 EXIT_PUSH_TO_TEST_DB_ERROR = -2
16
17 class Constants(object):
18     INSTALLERS = ['apex', 'fuel', 'compass', 'joid', "daisy"]
19     VERSIONS = ['arno', 'brahmaputra', 'colorado', 'danube']
20
21     EX_OK = 0
22     EX_RUN_ERROR = -1
23     EX_TEST_FAIL = -2
24     EX_PUSH_RESULT_FAIL = -3