diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-06-23 12:30:07 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-03 19:32:56 +0200 |
commit | 5013a09d75c533911889ec15cfb9001237e05131 (patch) | |
tree | 24d0c5331ead83f09d741a47b4891779e1d71755 /functest/opnfv_tests/openstack/tempest/tempest.py | |
parent | d5efbd5f0b8c4d6eb1cce507368e81b710903931 (diff) |
Fix user/project create operations
os_client_config creates a singleton which forbids the previous
processing. It also cleans remaining resources and allows
publishing public images (needed by Tempest)
Change-Id: I3a0ad8664b263d3ee8599efe2973465006d5750b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit c717c43b1257e126296a4b1d697c8f6a72728855)
Diffstat (limited to 'functest/opnfv_tests/openstack/tempest/tempest.py')
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index 9a2976673..a7ba8e026 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -37,6 +37,8 @@ class TempestCommon(singlevm.VmReady1): TEMPEST_RESULTS_DIR = os.path.join( getattr(config.CONF, 'dir_results'), 'tempest') + visibility = 'public' + def __init__(self, **kwargs): super(TempestCommon, self).__init__(**kwargs) self.mode = "" @@ -266,14 +268,17 @@ class TempestCommon(singlevm.VmReady1): LOGGER.info("Creating two images for Tempest suite") - meta = getattr( - config.CONF, '{}_extra_properties'.format(self.case_name), None) self.image_alt = self.cloud.create_image( '{}-img_alt_{}'.format(self.case_name, self.guid), filename=getattr( config.CONF, '{}_image'.format(self.case_name), self.filename), - meta=meta) + meta=getattr( + config.CONF, '{}_extra_properties'.format(self.case_name), + self.extra_properties), + visibility=getattr( + config.CONF, '{}_visibility'.format(self.case_name), + self.visibility)) LOGGER.debug("image_alt: %s", self.image_alt) self.flavor_alt = self.orig_cloud.create_flavor( |