From: Linda Wang Date: Thu, 24 Aug 2017 06:33:55 +0000 (+0000) Subject: Grant the new user to os_creds.project_name X-Git-Tag: opnfv-5.0.0~4^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F59%2F40059%2F1;p=snaps.git Grant the new user to os_creds.project_name For the test test_create_admin_user, the new user is granted to the project "admin", so the role retrieval is None with os_creds.project_name, which is not "admin". Change-Id: I840d81ec83a72fc913edef8d4200223dfa2eca39 Signed-off-by: Linda Wang --- diff --git a/snaps/openstack/tests/create_user_tests.py b/snaps/openstack/tests/create_user_tests.py index 9f08a32..ffae596 100644 --- a/snaps/openstack/tests/create_user_tests.py +++ b/snaps/openstack/tests/create_user_tests.py @@ -105,7 +105,7 @@ class CreateUserSuccessTests(OSComponentTestCase): self.user_settings = UserSettings( name=guid + '-name', password=guid + '-password', - roles={'admin': 'admin'}, + roles={'admin': self.os_creds.project_name}, domain_name=self.os_creds.user_domain_name) self.keystone = keystone_utils.keystone_client(self.os_creds)