diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-09-06 12:44:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-06 12:44:56 +0000 |
commit | cbb64439160caa48d5725b3ee8be0023103a9ec7 (patch) | |
tree | 41582d4dd927fe44a0a701b09b2dd48c2e8a0347 /functest/core/vnf.py | |
parent | c16361c872858c5d36ac3012bf2df2222eb280cd (diff) | |
parent | c167e319b676a46eda05475784c1fd99d6a65385 (diff) |
Merge "Create VNF user with admin role"
Diffstat (limited to 'functest/core/vnf.py')
-rw-r--r-- | functest/core/vnf.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/functest/core/vnf.py b/functest/core/vnf.py index 868b8b48..517838a7 100644 --- a/functest/core/vnf.py +++ b/functest/core/vnf.py @@ -116,13 +116,15 @@ class VnfOnBoarding(base.TestCase): self.created_object.append(project_creator) self.os_project = project_creator - user_creator = OpenStackUser(snaps_creds, - UserSettings( - name=self.tenant_name, - password=self.tenant_name)) - self.created_object.append(user_creator) + user_creator = OpenStackUser( + snaps_creds, + UserSettings( + name=self.tenant_name, + password=self.tenant_name, + roles={'admin': self.tenant_name})) - project_creator.assoc_user(user_creator.create()) + user_creator.create() + self.created_object.append(user_creator) self.snaps_creds = user_creator.get_os_creds(self.tenant_name) |