diff options
author | 2018-06-18 13:52:42 +0200 | |
---|---|---|
committer | 2018-07-03 12:09:02 +0200 | |
commit | 11816933e15f46c785b032c292147a66220eb9f4 (patch) | |
tree | e58ad5af9b9925685f5ca9cafdd48db0b7510fac /functest/opnfv_tests/openstack/tempest | |
parent | c963af3d88df438e4a1030408b878298488b4c10 (diff) |
Publish tenantnetwork scenarios
They ease creating all tenant network ressources.
These scenarios should be reused by other more complex ones.
Change-Id: I4ce1872065bde92408d34f2ca8823ce98275d8d5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 979161874ba837f55a53aba391966c52433123e6)
Diffstat (limited to 'functest/opnfv_tests/openstack/tempest')
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index d9ff98126..09b8c8a3d 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -369,7 +369,9 @@ class TempestResourcesManager(object): self.cloud = shade.OperatorCloud( cloud_config=os_client_config.get_config()) LOGGER.debug("cloud: %s", self.cloud) - self.domain = self.cloud.auth.get("project_domain_name", "Default") + self.domain = self.cloud.get_domain( + name_or_id=self.cloud.auth.get( + "project_domain_name", "Default")) LOGGER.debug("domain: %s", self.domain) self.project = None self.user = None @@ -386,7 +388,7 @@ class TempestResourcesManager(object): getattr(config.CONF, 'tempest_identity_tenant_name') + self.guid, description=getattr( config.CONF, 'tempest_identity_tenant_description'), - domain_id=self.domain) + domain_id=self.domain.id) LOGGER.debug("project: %s", self.project) def _create_user(self): @@ -397,7 +399,7 @@ class TempestResourcesManager(object): password=getattr(config.CONF, 'tempest_identity_user_password'), default_project=getattr( config.CONF, 'tempest_identity_tenant_name') + self.guid, - domain_id=self.domain) + domain_id=self.domain.id) LOGGER.debug("user: %s", self.user) def _create_network(self): |