Merge "Search by user defined ID for identity providers"

This commit is contained in:
Jenkins 2016-05-24 23:30:22 +00:00 committed by Gerrit Code Review
commit 478b776937
2 changed files with 3 additions and 1 deletions

View File

@ -214,7 +214,8 @@ class ShowIdentityProvider(command.ShowOne):
identity_client = self.app.client_manager.identity
idp = utils.find_resource(
identity_client.federation.identity_providers,
parsed_args.identity_provider)
parsed_args.identity_provider,
id=parsed_args.identity_provider)
idp._info.pop('links', None)
remote_ids = utils.format_list(idp._info.pop('remote_ids', []))

View File

@ -616,6 +616,7 @@ class TestIdentityProviderShow(TestIdentityProvider):
self.identity_providers_mock.get.assert_called_with(
identity_fakes.idp_id,
id='test_idp'
)
collist = ('description', 'enabled', 'id', 'remote_ids')