From f38345f05e3efb30dd205d5fdf1bb6af5c0130be Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 10 Dec 2020 09:32:17 +0100 Subject: Set NEW_USER ROLE in tempest_heat classic user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Else it fails when member is not the default role. Change-Id: I1c830705b94a116ef56d83ebcd59145cd40e59a5 Signed-off-by: Cédric Ollivier (cherry picked from commit 8d5ddfc2405ec2c454869708e4c020d4e361dd69) --- 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 91ce4573b..4aa84f906 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -720,6 +720,9 @@ class TempestHeat(TempestCommon): name='{}-user2_{}'.format(self.case_name, self.project.guid), password=self.project.password, domain_id=self.project.domain.id) + self.orig_cloud.grant_role( + self.role_name, user=self.user2.id, + project=self.project.project.id, domain=self.project.domain.id) if not self.orig_cloud.get_role("heat_stack_owner"): self.role = self.orig_cloud.create_role("heat_stack_owner") self.orig_cloud.grant_role( -- cgit 1.2.3-korg