diff --git a/test/integration/smoke/test_nic.py b/test/integration/smoke/test_nic.py index dd6de96233f..488ed0a4d4e 100644 --- a/test/integration/smoke/test_nic.py +++ b/test/integration/smoke/test_nic.py @@ -40,6 +40,10 @@ class TestNic(cloudstackTestCase): # assign the signal handler immediately signal.signal(signal.SIGINT, signal_handler) + hypervisor = self.testClient.getHypervisorInfo() + if hypervisor.lower() == "hyperv": + raise unittest.SkipTest("Not supported on Hyper-V") + try: self.apiclient = self.testClient.getApiClient() self.dbclient = self.testClient.getDbConnection() diff --git a/test/integration/smoke/test_primary_storage.py b/test/integration/smoke/test_primary_storage.py index 66aec59b8a9..8926a9eb142 100644 --- a/test/integration/smoke/test_primary_storage.py +++ b/test/integration/smoke/test_primary_storage.py @@ -56,6 +56,10 @@ class TestPrimaryStorageServices(cloudstackTestCase): """Test primary storage pools - XEN, KVM, VMWare """ + if self.testClient.getHypervisorInfo().lower() == "hyperv": + raise self.skipTest("NFS primary storage not supported on Hyper-V") + + # Validate the following: # 1. List Clusters # 2. verify that the cluster is in 'Enabled' allocation state @@ -149,6 +153,9 @@ class TestPrimaryStorageServices(cloudstackTestCase): """Test primary storage pools - XEN, KVM, VMWare """ + if self.testClient.getHypervisorInfo().lower() == "hyperv": + raise self.skipTest("iSCSI primary storage Not supported on Hyper-V") + # Validate the following: # 1. List Clusters # 2. verify that the cluster is in 'Enabled' allocation state diff --git a/test/integration/smoke/test_scale_vm.py b/test/integration/smoke/test_scale_vm.py index b5c89be4531..b3804dcddac 100644 --- a/test/integration/smoke/test_scale_vm.py +++ b/test/integration/smoke/test_scale_vm.py @@ -35,8 +35,8 @@ class TestScaleVm(cloudstackTestCase): cls.apiclient = testClient.getApiClient() cls.services = testClient.getParsedTestDataConfig() cls.hypervisor = cls.testClient.getHypervisorInfo() - if cls.hypervisor.lower() == 'kvm': - raise unittest.SkipTest("ScaleVM is not supported on KVM. Hence, skipping the test") + if cls.hypervisor.lower() in ('kvm', 'hyperv'): + raise unittest.SkipTest("ScaleVM is not supported on KVM or Hyper-V. Hence, skipping the test") # Get Zone, Domain and templates domain = get_domain(cls.apiclient) diff --git a/test/integration/smoke/test_snapshots.py b/test/integration/smoke/test_snapshots.py index 8b6fdd1a0f0..5db3e4020dc 100644 --- a/test/integration/smoke/test_snapshots.py +++ b/test/integration/smoke/test_snapshots.py @@ -36,6 +36,10 @@ class TestSnapshotRootDisk(cloudstackTestCase): cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests()) cls.services['mode'] = cls.zone.networktype + cls.hypervisor = cls.testClient.getHypervisorInfo() + if cls.hypervisor.lower() == 'hyperv': + raise unittest.SkipTest("Snapshots not supported on Hyper-V") + template = get_template( cls.apiclient, cls.zone.id, diff --git a/test/integration/smoke/test_vm_snapshots.py b/test/integration/smoke/test_vm_snapshots.py index 01626f5c1bb..dae945cd72f 100644 --- a/test/integration/smoke/test_vm_snapshots.py +++ b/test/integration/smoke/test_vm_snapshots.py @@ -38,8 +38,8 @@ class TestVmSnapshot(cloudstackTestCase): testClient = super(TestVmSnapshot, cls).getClsTestClient() hypervisor = testClient.getHypervisorInfo() - if hypervisor.lower() == KVM.lower(): - raise unittest.SkipTest("VM snapshot feature is not supported on KVM") + if hypervisor.lower() in (KVM.lower(), "hyperv"): + raise unittest.SkipTest("VM snapshot feature is not supported on KVM or Hyper-V") cls.apiclient = testClient.getApiClient() cls.services = testClient.getParsedTestDataConfig() diff --git a/test/integration/smoke/test_volumes.py b/test/integration/smoke/test_volumes.py index 6e9ea759085..e2e0d76f2db 100644 --- a/test/integration/smoke/test_volumes.py +++ b/test/integration/smoke/test_volumes.py @@ -585,8 +585,8 @@ class TestVolumes(cloudstackTestCase): if hosts[0].hypervisor == "XenServer": self.virtual_machine.stop(self.apiClient) - elif hosts[0].hypervisor.lower() == "vmware": - self.skipTest("Resize Volume is unsupported on VmWare") + elif hosts[0].hypervisor.lower() in ("vmware", "hyperv"): + self.skipTest("Resize Volume is unsupported on VmWare and Hyper-V") self.apiClient.resizeVolume(cmd) count = 0 @@ -636,8 +636,8 @@ class TestVolumes(cloudstackTestCase): if hosts[0].hypervisor == "XenServer": self.virtual_machine.stop(self.apiClient) - elif hosts[0].hypervisor.lower() == "vmware": - self.skipTest("Resize Volume is unsupported on VmWare") + elif hosts[0].hypervisor.lower() in ("vmware", "hyperv"): + self.skipTest("Resize Volume is unsupported on VmWare and Hyper-V") # resize the data disk self.debug("Resize Volume ID: %s" % self.volume.id)