diff options
author | Steven Hardy <shardy@redhat.com> | 2014-01-31 16:06:19 +0000 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2014-02-10 14:09:51 +0000 |
commit | 2cf0c8ab2748295f5144b223d749ba71402adb0c (patch) | |
tree | e3d9bb610e152c0bca40f3b0460af979db4cf9be /heat/tests/fakes.py | |
parent | 139206d1778139dc579af3fe230fc1ecd08f0bad (diff) | |
download | heat-2cf0c8ab2748295f5144b223d749ba71402adb0c.tar.gz |
Add parser.Stack support for stack_domain_projects
Add a DB column to store the project created to contain instance-users
associated with resources in the stack. To avoid the overhead of creating
a project for all stacks (and associated test impact), we introduce a
setter which can be used by InstanceUser resources to set the project
ID, such that it's cached at the stack level (no need to look up the ID
in keystone every time) and so the stack can clean up the project when it
is deleted.
Change-Id: Iea3624afbc4d746f46cd58d50e7b238bc847fa49
blueprint: instance-users
Diffstat (limited to 'heat/tests/fakes.py')
-rw-r--r-- | heat/tests/fakes.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/heat/tests/fakes.py b/heat/tests/fakes.py index b179ceab6..235df443d 100644 --- a/heat/tests/fakes.py +++ b/heat/tests/fakes.py @@ -139,3 +139,6 @@ class FakeKeystoneClient(object): def delete_trust(self, trust_id): pass + + def delete_stack_domain_project(self, project_id): + pass |