Skip to content

Commit

Permalink
Added tests for bug 882760
Browse files Browse the repository at this point in the history
Change-Id: I81d9c3f2ad62488d3cc4b8e46c2b2aef6d65fae1
  • Loading branch information
dolph committed Nov 8, 2011
1 parent 7db0364 commit c118042
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions keystone/test/functional/test_auth.py
Expand Up @@ -149,6 +149,9 @@ def test_user_auth_with_role_on_tenant(self):

self.assertEqual(scoped['token']['tenant']['id'], tenant['id'])
self.assertEqual(scoped['token']['tenant']['name'], tenant['name'])
self.assertEqual(scoped['user']['roles'][0]['id'], role['id'])
self.assertEqual(scoped['user']['roles'][0]['name'], role['name'])
self.assertEqual(scoped['user']['roles'][0]['tenantId'], tenant['id'])

# And an admin should be able to validate that our new token is scoped
r = self.validate_token(scoped['token']['id'], tenant['id'])
Expand Down

0 comments on commit c118042

Please sign in to comment.