Adding instance creation test

Signed-off-by: Chris Alfonso <calfonso@redhat.com>
This commit is contained in:
Chris Alfonso 2012-04-19 19:24:28 -04:00
parent 7b039d4a75
commit 29c0f9a74f
1 changed files with 0 additions and 5 deletions

View File

@ -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()