CLOUDSTACK-8124: Skipping snapshot tests on Hyper-V

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Gaurav Aradhye 2015-01-20 19:06:02 +05:30 committed by SrikanteswaraRao Talluri
parent 762727439b
commit 9658569f5a
1 changed files with 14 additions and 0 deletions

View File

@ -249,6 +249,8 @@ class TestSnapshots(cloudstackTestCase):
def test_02_snapshot_data_disk(self):
"""Test Snapshot Data Disk
"""
if self.hypervisor.lower() in ['hyperv']:
self.skipTest("Snapshots feature is not supported on Hyper-V")
volume = list_volumes(
self.apiclient,
@ -318,6 +320,9 @@ class TestSnapshots(cloudstackTestCase):
# 6. Mount/Attach volume to another virtual machine
# 7. Compare data, data should match
if self.hypervisor.lower() in ['hyperv']:
self.skipTest("Snapshots feature is not supported on Hyper-V")
random_data_0 = random_gen(size=100)
random_data_1 = random_gen(size=100)
@ -560,6 +565,9 @@ class TestSnapshots(cloudstackTestCase):
# 3. Verify snapshot is removed by calling List Snapshots API
# 4. Verify snapshot was removed from image store
if self.hypervisor.lower() in ['hyperv']:
self.skipTest("Snapshots feature is not supported on Hyper-V")
self.debug("Creating volume under account: %s" % self.account.name)
volume = Volume.create(
self.apiclient,
@ -635,6 +643,9 @@ class TestSnapshots(cloudstackTestCase):
# 5. listSnapshots should list the snapshot that was created
# 6. verify backup_snap_id was non null in the `snapshots` table
if self.hypervisor.lower() in ['hyperv']:
self.skipTest("Snapshots feature is not supported on Hyper-V")
volumes = list_volumes(
self.apiclient,
virtualmachineid=self.virtual_machine.id,
@ -765,6 +776,9 @@ class TestSnapshots(cloudstackTestCase):
# 6. Compare data in the root disk with the one that was written on the
# volume, it should match
if self.hypervisor.lower() in ['hyperv']:
self.skipTest("Snapshots feature is not supported on Hyper-V")
userapiclient = self.testClient.getUserApiClient(
UserName=self.account.name,
DomainName=self.account.domain)