diff options
author | Zane Bitter <zbitter@redhat.com> | 2014-05-30 15:36:29 -0400 |
---|---|---|
committer | Zane Bitter <zbitter@redhat.com> | 2014-06-05 13:45:14 -0400 |
commit | ff76cbd6d85b21896834b280eb290050177b271e (patch) | |
tree | 2ffbc83269b4fac38d91a2e9229b3911d1caf27d /heat/tests/test_nokey.py | |
parent | fd9506ef83d3d8cf845af7175ab9b2920f7cdbb5 (diff) | |
download | heat-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.py | 3 |
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) |