Ensure the user monkey patching is done for the API tests
When running a subset of the tests, the get_user middleware monkey patching in openstack_auth.utils did not always happen, causing some of the tests to fail due to missing expected properties. Fixes bug #1209177 Change-Id: Ic00b842e740954b0f36353381f511f7ba3eab70b
This commit is contained in:
parent
e6bc949d8e
commit
515e469631
|
@ -245,6 +245,7 @@ class APITestCase(TestCase):
|
|||
"""
|
||||
def setUp(self):
|
||||
super(APITestCase, self).setUp()
|
||||
utils.patch_middleware_get_user()
|
||||
|
||||
def fake_keystoneclient(request, admin=False):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue