mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-2361: fix storage xenmotion test script
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
93db64fc25
commit
8be304434e
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user