CLOUDSTACK-8161: added skips for the tests which are not supported on LXC:

1. vm create from ISO
2. dynamic scaling of VM.
3. windows VM on LXC
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
SrikanteswaraRao Talluri 2015-01-30 16:43:40 +05:30
parent 3eb5c76911
commit fc6d925ade
3 changed files with 19 additions and 2 deletions

View File

@ -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"],

View File

@ -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)

View File

@ -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)