diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-12-10 09:32:17 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-12-10 09:34:00 +0100 |
commit | 2d2fcf12c1a263fc2b41af835c8f62d47990d77d (patch) | |
tree | 0174d59cb2440da6b581a69600d3f6bdfa3087c3 | |
parent | d147d19769d052c32779d0a9059dc8aa528c801c (diff) |
Set NEW_USER ROLE in tempest_heat classic user
Else it fails when member is not the default role.
Change-Id: I1c830705b94a116ef56d83ebcd59145cd40e59a5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 8d5ddfc2405ec2c454869708e4c020d4e361dd69)
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index 3258cc5c4..0a4deb517 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -713,6 +713,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( |