Skip to content

Commit

Permalink
Removing broken & redundant code (bug 933555)
Browse files Browse the repository at this point in the history
Change-Id: I6618487885bcb930a28373bc86d07c537f7a1fe1
  • Loading branch information
dolph committed Feb 22, 2012
1 parent 9742dc0 commit 510061e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 2 additions & 11 deletions keystone/service.py
Expand Up @@ -345,17 +345,8 @@ def delete_token(self, context, token_id):
self.token_api.delete_token(context=context, token_id=token_id)

def endpoints(self, context, token_id):
"""Return service catalog endpoints."""
try:
token_ref = self.token_api.get_token(context=context,
token_id=token_id)
except exception.NotFound:
raise exception.Unauthorized()

catalog_ref = self.catalog_api.get_catalog(context,
token_ref['user']['id'],
token_ref['tenant']['id'])
return {'token': {'serviceCatalog': self._format_catalog(catalog_ref)}}
"""Return a list of endpoints available to the token."""
raise NotImplementedError()

def _format_authenticate(self, token_ref, roles_ref, catalog_ref):
o = self._format_token(token_ref, roles_ref)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_keystoneclient.py
Expand Up @@ -177,6 +177,8 @@ def test_authenticate_no_username(self):

# TODO(termie): I'm not really sure that this is testing much
def test_endpoints(self):
raise nose.exc.SkipTest('Not implemented due to bug 933555')

client = self.get_client(admin=True)
token = client.auth_token
endpoints = client.tokens.endpoints(token=token)
Expand Down

0 comments on commit 510061e

Please sign in to comment.