diff --git a/test/integration/component/maint/test_bugs.py b/test/integration/component/maint/test_bugs.py index f68c244e115..160cd1d7c52 100644 --- a/test/integration/component/maint/test_bugs.py +++ b/test/integration/component/maint/test_bugs.py @@ -517,6 +517,9 @@ class Test42xBugsMgmtSvr(cloudstackTestCase): """ # register windows 2012 VM template as windows 8 template + self.hypervisor = self.testClient.getHypervisorInfo() + if self.hypervisor.lower() in ['lxc']: + self.skipTest("windows VM is not supported on %s" % self.hypervisor.lower()) self.win2012_template = Template.register( self.apiClient, self.services["win2012template"], diff --git a/test/integration/component/test_dynamic_compute_offering.py b/test/integration/component/test_dynamic_compute_offering.py index 376d419781c..ce6c4cd5868 100644 --- a/test/integration/component/test_dynamic_compute_offering.py +++ b/test/integration/component/test_dynamic_compute_offering.py @@ -62,6 +62,9 @@ class TestDynamicServiceOffering(cloudstackTestCase): cls.domain = get_domain(cls.apiclient) cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests()) cls.services['mode'] = cls.zone.networktype + self.hypervisor = self.testClient.getHypervisorInfo() + if self.hypervisor.lower() in ['lxc']: + self.skipTest("dynamic scaling feature is not supported on %s" % self.hypervisor.lower()) cls.template = get_template( cls.apiclient, @@ -481,8 +484,7 @@ class TestScaleVmDynamicServiceOffering(cloudstackTestCase): TestScaleVmDynamicServiceOffering, cls).getClsTestClient() cls.api_client = cloudstackTestClient.getApiClient() - cls.hypervisor = cloudstackTestClient.getHypervisorInfo() - + self.hypervisor = self.testClient.getHypervisorInfo() # Fill services from the external config file cls.services = cloudstackTestClient.getParsedTestDataConfig() @@ -1260,6 +1262,9 @@ class TestAccountLimits(cloudstackTestCase): # Fill services from the external config file cls.services = cloudstackTestClient.getParsedTestDataConfig() + self.hypervisor = self.testClient.getHypervisorInfo() + if self.hypervisor.lower() in ['lxc']: + self.skipTest("dynamic scaling feature is not supported on %s" % self.hypervisor.lower()) # Get Zone, Domain and templates cls.domain = get_domain(cls.api_client) @@ -1597,6 +1602,9 @@ class TestAffinityGroup(cloudstackTestCase): # Fill services from the external config file cls.services = cloudstackTestClient.getParsedTestDataConfig() + self.hypervisor = self.testClient.getHypervisorInfo() + if self.hypervisor.lower() in ['lxc']: + self.skipTest("migrate VM feature is not supported on %s" % self.hypervisor.lower()) # Get Zone, Domain and templates cls.domain = get_domain(cls.api_client) diff --git a/test/integration/component/test_stopped_vm.py b/test/integration/component/test_stopped_vm.py index 1a928ccc813..89543720970 100644 --- a/test/integration/component/test_stopped_vm.py +++ b/test/integration/component/test_stopped_vm.py @@ -826,6 +826,9 @@ class TestDeployHaEnabledVM(cloudstackTestCase): # 1. deployHA enabled Vm using ISO with the startvm parameter=true # 2. listVM command should return the deployed VM. State of this VM # should be "Running". + self.hypervisor = self.testClient.getHypervisorInfo() + if self.hypervisor.lower() in ['lxc']: + self.skipTest("vm deploy from ISO feature is not supported on %s" % self.hypervisor.lower()) self.iso = Iso.create( self.apiclient, @@ -869,6 +872,9 @@ class TestDeployHaEnabledVM(cloudstackTestCase): # 1. deployHA enabled Vm using ISO with the startvm parameter=false # 2. listVM command should return the deployed VM. State of this VM # should be "Stopped". + self.hypervisor = self.testClient.getHypervisorInfo() + if self.hypervisor.lower() in ['lxc']: + self.skipTest("vm deploy from ISO feature is not supported on %s" % self.hypervisor.lower()) self.debug("Deploying instance in the account: %s" % self.account.name)