3 # pylint: disable=missing-docstring
12 class Environment(object): # pylint: disable=too-few-public-methods
15 'NODE_NAME': 'unknown_pod',
16 'DEPLOY_SCENARIO': 'os-nosdn-nofeature-noha',
17 'DEPLOY_TYPE': 'virt',
18 'INSTALLER_TYPE': None,
21 'OS_ENDPOINT_TYPE': None,
23 'CONFIG_FUNCTEST_YAML': pkg_resources.resource_filename(
24 'functest', 'ci/config_functest.yaml'),
26 'OS_REGION_NAME': 'RegionOne'
30 for key, value in six.iteritems(os.environ):
31 setattr(self, key, value)
32 for key, value in six.iteritems(self.default_envs):
33 if key not in os.environ:
34 setattr(self, key, value)
35 if 'CI_LOOP' not in os.environ:
38 def _set_ci_loop(self):
39 if (getattr(self, "BUILD_TAG") and
40 re.search("daily", getattr(self, "BUILD_TAG"))):
41 setattr(self, "CI_LOOP", "daily")
43 setattr(self, "CI_LOOP", "weekly")