summaryrefslogtreecommitdiff
path: root/heat/tests/api/openstack_v1/test_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'heat/tests/api/openstack_v1/test_util.py')
-rw-r--r--heat/tests/api/openstack_v1/test_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/heat/tests/api/openstack_v1/test_util.py b/heat/tests/api/openstack_v1/test_util.py
index 93930eccc..ec0ae5e8b 100644
--- a/heat/tests/api/openstack_v1/test_util.py
+++ b/heat/tests/api/openstack_v1/test_util.py
@@ -88,7 +88,7 @@ class TestPolicyEnforce(common.HeatTestCase):
def setUp(self):
super(TestPolicyEnforce, self).setUp()
self.req = wsgi.Request({})
- self.req.context = context.RequestContext(tenant='foo',
+ self.req.context = context.RequestContext(project_id='foo',
is_admin=False)
class DummyController(object):
@@ -113,7 +113,7 @@ class TestPolicyEnforce(common.HeatTestCase):
@mock.patch.object(policy.Enforcer, 'enforce')
def test_policy_enforce_tenant_mismatch_is_admin(self, mock_enforce):
- self.req.context = context.RequestContext(tenant='foo',
+ self.req.context = context.RequestContext(project_id='foo',
is_admin=True)
mock_enforce.return_value = True