diff options
author | Linda Wang <wangwulin@huawei.com> | 2018-03-04 07:24:04 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2018-03-04 07:24:04 +0000 |
commit | ddc0e89d3d24d40267c31408cf9adf123d924c8f (patch) | |
tree | b6f966dd1657a317c2e9c74dad5f2b84d2d06d00 | |
parent | ce3e13025ef35a9c5eb25a7259656e5bf0d57213 (diff) |
Support domains when creating project/user
JIRA: FUNCTEST-945
Change-Id: Ibfce5a7d2ebb59a83ad5b2b6344c2fc87d7f3e84
Signed-off-by: Linda Wang <wangwulin@huawei.com>
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index 04f3e607e..b1384dd1e 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -334,7 +334,8 @@ class TempestResourcesManager(object): name=getattr( config.CONF, 'tempest_identity_tenant_name') + self.guid, description=getattr( - config.CONF, 'tempest_identity_tenant_description'))) + config.CONF, 'tempest_identity_tenant_description'), + domain=self.os_creds.project_domain_name)) if project_creator is None or project_creator.get_project() is None: raise Exception("Failed to create tenant") self.creators.append(project_creator) @@ -349,7 +350,8 @@ class TempestResourcesManager(object): password=getattr( config.CONF, 'tempest_identity_user_password'), project_name=getattr( - config.CONF, 'tempest_identity_tenant_name') + self.guid)) + config.CONF, 'tempest_identity_tenant_name') + self.guid, + domain_name=self.os_creds.user_domain_name)) if user_creator is None or user_creator.get_user() is None: raise Exception("Failed to create user") self.creators.append(user_creator) |