11 'NODE_NAME': 'unknown_pod',
13 'DEPLOY_SCENARIO': 'os-nosdn-nofeature-noha',
14 'DEPLOY_TYPE': 'virt',
15 'INSTALLER_TYPE': None,
18 'OS_ENDPOINT_TYPE': None,
20 'CONFIG_FUNCTEST_YAML': pkg_resources.resource_filename(
21 'functest', 'ci/config_functest.yaml'),
26 class Environment(object):
29 for k, v in six.iteritems(os.environ):
30 self.__setattr__(k, v)
31 for k, v in six.iteritems(default_envs):
32 if k not in os.environ:
33 self.__setattr__(k, v)
35 if 'CI_LOOP' not in os.environ:
38 def _set_ci_run(self):
42 self.IS_CI_RUN = False
44 def _set_ci_loop(self):
45 if self.BUILD_TAG and re.search("daily", self.BUILD_TAG):
46 self.CI_LOOP = "daily"
48 self.CI_LOOP = "weekly"