Fix test mistake with requests-mock
body= parameters are supposed to be io objects. This is obviously during the conversion from HTTPretty. Change-Id: Ia8ec9294e054e2231aa4a5e2633e2b7d5d15066a Closes-Bug: #1363632
This commit is contained in:
@@ -191,7 +191,7 @@ class CommonIdentityTests(object):
|
||||
|
||||
body = 'SUCCESS'
|
||||
self.stub_url('GET', ['path'],
|
||||
base_url=self.TEST_COMPUTE_ADMIN, body=body)
|
||||
base_url=self.TEST_COMPUTE_ADMIN, text=body)
|
||||
|
||||
a = self.create_auth_plugin(**kwargs)
|
||||
a.auth_ref = expired_auth_ref
|
||||
|
@@ -101,7 +101,7 @@ class AuthenticateAgainstKeystoneTests(utils.TestCase):
|
||||
self.assertRequestBodyIs(json=self.TEST_REQUEST_BODY)
|
||||
|
||||
def test_auth_redirect(self):
|
||||
self.stub_auth(status_code=305, body='Use Proxy',
|
||||
self.stub_auth(status_code=305, text='Use Proxy',
|
||||
headers={'Location': self.TEST_ADMIN_URL + "/tokens"})
|
||||
|
||||
self.stub_auth(base_url=self.TEST_ADMIN_URL,
|
||||
|
Reference in New Issue
Block a user