Adding instance creation test

Signed-off-by: Chris Alfonso <calfonso@redhat.com>
changes/40/40/1
Chris Alfonso 11 years ago
parent 7b039d4a75
commit 29c0f9a74f

@ -70,12 +70,7 @@ class ResourcesTest(unittest.TestCase):
instance.itype_oflavor['256 MB Server'] = '256 MB Server'
instance.create()
print self.cs.flavors.list()[0].name
self.m.ReplayAll()
t['Resources']['WebServer']['Properties']['ImageId'] = 'CentOS 5.2'
t['Resources']['WebServer']['Properties']['InstanceType'] = '256 MB Server'
instance = resources.Instance('test_resource_name',\
t['Resources']['WebServer'], stack)
instance.itype_oflavor['256 MB Server'] = '256 MB Server'
instance.create()

Loading…
Cancel
Save