From 4fc011e75748a16d280e419dd0df4cdb648c7203 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 22 Sep 2018 14:09:43 +0200 Subject: Grant new tempest user as admin in domain too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems mandatory for test_list_projects_returns_only_authorized_projects Change-Id: Id994e66b088d751c4f6d7f260f8e482c2ee83307 Signed-off-by: Cédric Ollivier (cherry picked from commit 17e87d5af713bb07759c4b2af0c2b40077343a32) --- functest/opnfv_tests/openstack/tempest/tempest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index 02114feb2..999c142e4 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -55,6 +55,9 @@ class TempestCommon(singlevm.VmReady2): role_name, user=self.project.user.id, project=self.project.project.id, domain=self.project.domain.id) + self.orig_cloud.grant_role( + role_name, user=self.project.user.id, + domain=self.project.domain.id) environ = dict( os.environ, OS_USERNAME=self.project.user.name, -- cgit 1.2.3-korg