From ddc0e89d3d24d40267c31408cf9adf123d924c8f Mon Sep 17 00:00:00 2001
From: Linda Wang <wangwulin@huawei.com>
Date: Sun, 4 Mar 2018 07:24:04 +0000
Subject: Support domains when creating project/user

JIRA: FUNCTEST-945

Change-Id: Ibfce5a7d2ebb59a83ad5b2b6344c2fc87d7f3e84
Signed-off-by: Linda Wang <wangwulin@huawei.com>
---
 functest/opnfv_tests/openstack/tempest/tempest.py | 6 ++++--
 1 file 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)
-- 
cgit