Add Fix django.contrib.auth.middleware monkey patching for APITestCase

This patch rollbacks changes in APITestCase introduced in the
0d16361326 commit to unblock Horizon
plugins gates.

Change-Id: I6b2be31568e4aa4273990f9cfa76ca139620c84b
Closes-bug: #1806053
Closes-bug: #1805240
(cherry picked from commit de69edd040)
This commit is contained in:
Ivan Kolodyazhny 2018-11-30 17:33:21 +02:00 committed by Colleen Murphy
parent 2e91dc4148
commit 85fef71c0d
1 changed files with 1 additions and 0 deletions

View File

@ -496,6 +496,7 @@ class APITestCase(TestCase):
LOG.warning("APITestCase has been deprecated in favor of mock usage "
"and will be removed at the beginning of 'Stein' release. "
"Please convert your to use APIMockTestCase instead.")
utils.patch_middleware_get_user()
def fake_keystoneclient(request, admin=False):
"""Returns the stub keystoneclient.