Repository: cloudstack Updated Branches: refs/heads/master 8894fc897 -> ab333e4e3
CLOUDSTACK-8124: Skipping snapshot tests on Hyper-V Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ab333e4e Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ab333e4e Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ab333e4e Branch: refs/heads/master Commit: ab333e4e36f6e2fab8b8a5f889f5da86835b5756 Parents: 8894fc8 Author: Gaurav Aradhye <[email protected]> Authored: Tue Jan 20 19:06:02 2015 +0530 Committer: sanjeev <[email protected]> Committed: Thu Jan 22 14:28:56 2015 +0530 ---------------------------------------------------------------------- test/integration/component/test_snapshots.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ab333e4e/test/integration/component/test_snapshots.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_snapshots.py b/test/integration/component/test_snapshots.py index 5b8cdc7..bb93d8d 100644 --- a/test/integration/component/test_snapshots.py +++ b/test/integration/component/test_snapshots.py @@ -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)
