diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-09-22 14:09:43 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-09-22 16:54:15 +0200 |
commit | 372a08a5e786130927304d75a52022d27f1a6281 (patch) | |
tree | ab68a383c1ccf0e8892a129bf9871e3a59239ce7 | |
parent | fedfa7a4e8e46b4ad0d1449b349aaf99feec13ef (diff) |
Grant new tempest user as admin in domain too
It seems mandatory for test_list_projects_returns_only_authorized_projects
Change-Id: Id994e66b088d751c4f6d7f260f8e482c2ee83307
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 17e87d5af713bb07759c4b2af0c2b40077343a32)
-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 1307e32bc..a4fff4756 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, |