summaryrefslogtreecommitdiff
path: root/heat/tests/test_nokey.py
diff options
context:
space:
mode:
authorZane Bitter <zbitter@redhat.com>2014-05-30 15:36:29 -0400
committerZane Bitter <zbitter@redhat.com>2014-06-05 13:45:14 -0400
commitff76cbd6d85b21896834b280eb290050177b271e (patch)
tree2ffbc83269b4fac38d91a2e9229b3911d1caf27d /heat/tests/test_nokey.py
parentfd9506ef83d3d8cf845af7175ab9b2920f7cdbb5 (diff)
downloadheat-ff76cbd6d85b21896834b280eb290050177b271e.tar.gz
Unit tests: Create resources with ResourceDefinition
Stop creating Resources with dicts that are snippets of templates, and instead always use ResourceDefinition objects to create Resources. Change-Id: I1587f1edf9b04f06bd435857d7c1ea2c1cc26058
Diffstat (limited to 'heat/tests/test_nokey.py')
-rw-r--r--heat/tests/test_nokey.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/heat/tests/test_nokey.py b/heat/tests/test_nokey.py
index 7cc73b420..f72dc60a0 100644
--- a/heat/tests/test_nokey.py
+++ b/heat/tests/test_nokey.py
@@ -55,8 +55,9 @@ class nokeyTest(HeatTestCase):
t['Resources']['WebServer']['Properties']['ImageId'] = 'CentOS 5.2'
t['Resources']['WebServer']['Properties']['InstanceType'] = \
'256 MB Server'
+ resource_defns = stack.t.resource_definitions(stack)
instance = instances.Instance('create_instance_name',
- t['Resources']['WebServer'], stack)
+ resource_defns['WebServer'], stack)
self.m.StubOutWithMock(instance, 'nova')
instance.nova().MultipleTimes().AndReturn(self.fc)