Fix gate failure due to recent oslo.policy release

This fixes unittest job failure seen in the gate, which is
cause by the new release of oslo.policy, more info can be
found here [0].

[0] http://lists.openstack.org/pipermail/openstack-dev/2018-July/132312.html

Change-Id: I1a1e6af09b291a1dbba45676147da23983e7fd95
This commit is contained in:
Kaifeng Wang 2018-07-20 16:15:00 +08:00
parent 7991f12e17
commit b071f9802e
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class TestCheckAuth(base.BaseTest):
def test_invalid(self):
request = mock.Mock(headers={'X-Identity-Status': 'Invalid'})
request.context = context.RequestContext()
self.assertRaises(utils.Error, utils.check_auth, request)
def test_not_admin(self):