mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8124: Skipping snapshot tests on Hyper-V
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
parent
762727439b
commit
9658569f5a
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue