Add skip for disabled user test until associated bug is fixed
Turns out the PUT /users/<USER_ID/enabled call in Keystone admin API extension is broken until the fix for the associated bug is in. This adds the skip until that is done. Change-Id: Ia5d032ebc68c99c9db40e8d96776d81f61a47aec Fixes: LP 1018635
This commit is contained in:
parent
775cf639eb
commit
edba0620c4
@ -222,8 +222,11 @@ class RestClient(object):
|
||||
|
||||
if 'cloudServersFault' in resp_body:
|
||||
message = resp_body['cloudServersFault']['message']
|
||||
else:
|
||||
elif 'computeFault' in resp_body:
|
||||
message = resp_body['computeFault']['message']
|
||||
elif 'error' in resp_body: # Keystone errors
|
||||
message = resp_body['error']['message']
|
||||
raise exceptions.IdentityError(message)
|
||||
raise exceptions.ComputeFault(message)
|
||||
|
||||
if resp.status >= 400:
|
||||
|
@ -81,6 +81,10 @@ class ComputeFault(TempestException):
|
||||
message = "Got compute fault"
|
||||
|
||||
|
||||
class IdentityError(TempestException):
|
||||
message = "Got identity error"
|
||||
|
||||
|
||||
class Duplicate(TempestException):
|
||||
message = "An object with that identifier already exists"
|
||||
|
||||
|
@ -163,6 +163,7 @@ class UsersTest(BaseIdentityAdminTest):
|
||||
self.assertEqual('200', resp['status'])
|
||||
|
||||
@attr(type='negative')
|
||||
@unittest.skip('Until Bug 1022411 is fixed')
|
||||
def test_authentication_for_disabled_user(self):
|
||||
"""Disabled user's token should not get authenticated"""
|
||||
self.data.setup_test_user()
|
||||
|
Loading…
Reference in New Issue
Block a user