]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
tests : utils parse stack specify tenant in context
authorSteven Hardy <shardy@redhat.com>
Tue, 7 May 2013 14:43:37 +0000 (15:43 +0100)
committerSteven Hardy <shardy@redhat.com>
Tue, 7 May 2013 15:24:54 +0000 (16:24 +0100)
Some tests require the tenant name (not just the tenant_id)
to be set

Change-Id: I381701cc83ba419041df6102fd8b47d88c5b2c3f

heat/tests/utils.py

index cb9f646a1251da2dc00206863fb9a6fcbd9f41f7..9043028388f5228ecd18890dbecc829d470106c5 100644 (file)
@@ -74,6 +74,7 @@ def setup_dummy_db():
 
 def parse_stack(t, params={}, stack_name='test_stack', stack_id=None):
     ctx = context.RequestContext.from_dict({'tenant_id': 'test_tenant',
+                                            'tenant': 'test_tenant',
                                             'username': 'test_username',
                                             'password': 'password',
                                             'auth_url':