commit | 4781dc9067c4c21e425cd4c283e929cf99bdc4f0 | [log] [tgz] |
---|---|---|
author | Van Hung Pham <hungpv@vn.fujitsu.com> | Mon Jun 26 12:12:24 2017 +0700 |
committer | Felipe Monteiro <felipe.monteiro@att.com> | Tue Jun 27 21:16:30 2017 +0000 |
tree | 50688887bcc75d3f4e0c45310d567cb6014b2cb9 | |
parent | 7a52b6185e501f1fe3a017779d1a2161cff720cb [diff] |
Replace the usage of 'admin_manager' with 'os_admin' In tempest, alias 'admin_manager' has been moved to 'os_admin' in version Pike, and it will be removed in version Queens [1]. [1] https://review.openstack.org/#/c/467852/ Change-Id: I6d51cfcf2a5c931b5af2e32fa2ef153181fbca88
diff --git a/patrole_tempest_plugin/tests/unit/test_rbac_utils.py b/patrole_tempest_plugin/tests/unit/test_rbac_utils.py index 0f38b1e..85b1c39 100644 --- a/patrole_tempest_plugin/tests/unit/test_rbac_utils.py +++ b/patrole_tempest_plugin/tests/unit/test_rbac_utils.py
@@ -72,7 +72,7 @@ self.addCleanup(mock.patch.stopall) def _mock_list_user_roles_on_project(self, return_value): - self.mock_test_obj.admin_manager = mock.Mock( + self.mock_test_obj.os_admin = mock.Mock( **{'roles_client.list_user_roles_on_project.' 'return_value': {'roles': [{'id': return_value}]}})