From d79104e4d2cea3f39fc17cedbf98824daa7018ca Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Wed, 1 Jun 2011 14:12:19 -0500 Subject: Don't need to fiddle around with user tokens here, just admin tokens --- test/functional/test_tokens.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/test/functional/test_tokens.py b/test/functional/test_tokens.py index 36316c0a..a84eed02 100644 --- a/test/functional/test_tokens.py +++ b/test/functional/test_tokens.py @@ -40,19 +40,8 @@ class AuthenticateTest(base.BaseKeystoneTest): # Squirrel away the admin token ID admin_tok = resp.obj['auth']['token']['id'] - # Now, issue a secondary authentication request - resp = self.ks.authenticate(base.options.username, - base.options.password) - - # Verify that resp is correct - util.assert_equal(resp.status, 200) - util.assert_in('auth', resp.obj) - util.assert_in('token', resp.obj['auth']) - util.assert_in('id', resp.obj['auth']['token']) - # Now ensure we can revoke an authentication token - auth_tok = resp.obj['auth']['token']['id'] - resp = self.ks_admin.revoke_token(admin_tok, auth_tok) + resp = self.ks_admin.revoke_token(admin_tok, admin_tok) util.assert_equal(resp.status, 204) -- cgit