Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion magnum/common/keystone.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def create_trust(self, trustee_user):
project=trustor_project_id,
trustee_user=trustee_user,
impersonation=True,
delegation_depth=0,
allow_redelegation=False,
role_names=roles)
except Exception:
LOG.exception('Failed to create trust')
Expand Down
4 changes: 2 additions & 2 deletions magnum/tests/unit/common/test_keystone.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_create_trust_with_all_roles(self, mock_session, mock_ks):
ks_client.create_trust(trustee_user='888888')

mock_ks.return_value.trusts.create.assert_called_once_with(
delegation_depth=0,
allow_redelegation=False,
trustor_user='123456', project='654321',
trustee_user='888888', role_names=['role1', 'role2'],
impersonation=True)
Expand All @@ -173,7 +173,7 @@ def test_create_trust_with_limit_roles(self, mock_session, mock_ks):
ks_client.create_trust(trustee_user='888888')

mock_ks.return_value.trusts.create.assert_called_once_with(
delegation_depth=0,
allow_redelegation=False,
trustor_user='123456', project='654321',
trustee_user='888888', role_names=['role3'],
impersonation=True)
Expand Down