summaryrefslogtreecommitdiff
path: root/heat/tests/common.py
diff options
context:
space:
mode:
authorSergey Kraynev <skraynev@mirantis.com>2015-06-09 06:03:46 -0400
committerSergey Kraynev <skraynev@mirantis.com>2015-07-24 09:30:06 -0400
commitc1069f6c6344d2793aef8359462b354ba7dcd940 (patch)
tree40f6da456538b1b18890665d8386597692661e3c /heat/tests/common.py
parentb2e5d9fae1a876864bc9e2cd4ae5f28211bf5d84 (diff)
downloadheat-c1069f6c6344d2793aef8359462b354ba7dcd940.tar.gz
Move internal test resources to generic_resource
Move follow resources from the tests to common generic_resource module: - ResourceWithFnGetAttType - ResourceWithFnGetRefIdType - StackResourceType - ResourceWithListProp - ResourceWithRestoreType Change-Id: Ifa07b278469e115f6a475b571e5349df98629787
Diffstat (limited to 'heat/tests/common.py')
-rw-r--r--heat/tests/common.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/heat/tests/common.py b/heat/tests/common.py
index 6ae7cb2f5..f4ef4187c 100644
--- a/heat/tests/common.py
+++ b/heat/tests/common.py
@@ -146,6 +146,16 @@ class HeatTestCase(testscenarios.WithScenarios,
generic_rsrc.ResourceWithComplexAttributes)
resource._register_class('ResourceWithDefaultClientName',
generic_rsrc.ResourceWithDefaultClientName)
+ resource._register_class('OverwrittenFnGetAttType',
+ generic_rsrc.ResourceWithFnGetAttType)
+ resource._register_class('OverwrittenFnGetRefIdType',
+ generic_rsrc.ResourceWithFnGetRefIdType)
+ resource._register_class('ResourceWithListProp',
+ generic_rsrc.ResourceWithListProp)
+ resource._register_class('StackResourceType',
+ generic_rsrc.StackResourceType)
+ resource._register_class('ResourceWithRestoreType',
+ generic_rsrc.ResourceWithRestoreType)
def patchobject(self, obj, attr, **kwargs):
mockfixture = self.useFixture(mockpatch.PatchObject(obj, attr,