diff options
author | Jamie Lennox <jamielennox@gmail.com> | 2016-01-16 14:04:54 +1100 |
---|---|---|
committer | Jamie Lennox <jamielennox@gmail.com> | 2016-06-17 11:46:00 +1000 |
commit | 87a37f5db26b7cf6cc1e6240a7ebef4900983825 (patch) | |
tree | 15c33580edb2cd4bd812e6c967907cea314ca837 /heat/tests/test_engine_service.py | |
parent | 98dec2c9de98e73e85ef5d2ffb6a4e3ec398f688 (diff) | |
download | heat-87a37f5db26b7cf6cc1e6240a7ebef4900983825.tar.gz |
Sync context with oslo.context
Heat makes a lot of variations to the basic oslo.context which are going
to make it very hard to reuse with features added to the base
oslo.context.
There are a number of changes here that will make the heat context
options more like those from oslo.context.
*) context.user and context.tenant are IDs, not names. This will be
important for policy credentials.
*) kwargs should be passed through to base context so it can be extended
in the base class.
Change-Id: Ib0d60c6af196ba5c00459110b7a6190cff916d6f
Diffstat (limited to 'heat/tests/test_engine_service.py')
-rw-r--r-- | heat/tests/test_engine_service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/tests/test_engine_service.py b/heat/tests/test_engine_service.py index 442253942..df6c58709 100644 --- a/heat/tests/test_engine_service.py +++ b/heat/tests/test_engine_service.py @@ -396,7 +396,7 @@ class StackServiceAuthorizeTest(common.HeatTestCase): self.ctx, self.stack, 'NoSuchResource')) # not matching credential_id - self.ctx.user_id = str(uuid.uuid4()) + self.ctx.user = str(uuid.uuid4()) self.assertFalse(self.eng._authorize_stack_user( self.ctx, self.stack, 'WebServer')) |