diff options
author | Steven Hardy <shardy@redhat.com> | 2015-09-14 11:38:48 +0100 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2015-09-14 22:55:51 +0100 |
commit | fc77e432978334687e143f0a8e8d69a14df2de1d (patch) | |
tree | 274893636d2788ed09ef9ef25be10d18aeecee4d /heat/tests/common.py | |
parent | 1397af1b6d0ea3591c65055ae318b663b0e92d9f (diff) | |
download | heat-fc77e432978334687e143f0a8e8d69a14df2de1d.tar.gz |
Work around parameter error deleting backup stack
There is a problem where restoring a backup resource which references
a parameter in it's properties that doesn't exist in the backup stack
will fail to delete, if the property is referenced in the delete path
of the resource.
We can work around the problem by always returning the frozen_definition
properties on delete, provided there are stored properties to refer to.
Closes-Bug: #1494260
Change-Id: I462ce7161497306483286b78416f9037ac80d6fa
Diffstat (limited to 'heat/tests/common.py')
-rw-r--r-- | heat/tests/common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/heat/tests/common.py b/heat/tests/common.py index 70cf48386..c275afb95 100644 --- a/heat/tests/common.py +++ b/heat/tests/common.py @@ -143,6 +143,8 @@ class HeatTestCase(testscenarios.WithScenarios, generic_rsrc.SignalResource) resource._register_class('ResourceWithPropsType', generic_rsrc.ResourceWithProps) + resource._register_class('ResourceWithPropsRefPropOnDelete', + generic_rsrc.ResourceWithPropsRefPropOnDelete) resource._register_class('StackUserResourceType', generic_rsrc.StackUserResource) resource._register_class('ResourceWithResourceIDType', |