CLOUDSTACK-2361: fix storage xenmotion test script

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Talluri 2013-05-08 02:41:02 +05:30 committed by Prasanna Santhanam
parent 93db64fc25
commit 8be304434e

View File

@ -98,16 +98,16 @@ class TestStorageMotion(cloudstackTestCase):
# Get Zone, Domain and templates
domain = get_domain(cls.api_client, cls.services)
zone = get_zone(cls.api_client, cls.services)
cls.zone = get_zone(cls.api_client, cls.services)
cls.services['mode'] = cls.zone.networktype
template = get_template(
cls.api_client,
zone.id,
cls.zone.id,
cls.services["ostype"]
)
# Set Zones and disk offerings
cls.services["small"]["zoneid"] = zone.id
cls.services["small"]["zoneid"] = cls.zone.id
cls.services["small"]["template"] = template.id
# Create VMs, NAT Rules etc
@ -258,6 +258,17 @@ class TestStorageMotion(cloudstackTestCase):
self.apiclient,
id=volume.id
)
self.assertEqual(
isinstance(pools, list),
True,
"Check list storage pools response for valid list"
)
self.assertNotEqual(
pools,
None,
"Check if pools exists in ListStoragePools"
)
pool = pools[0]
self.debug("Migrating Volume-ID: %s to Pool: %s" % (
volume.id,