VM deployments from ISO and attaching ISOs to vm are not supported in LXC. So no point in running iso tests for LXC Bug-Id: CS-42250 Reviewed-By: Shweta

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #487
This commit is contained in:
Sanjeev Neelarapu 2015-06-19 15:48:42 +05:30 committed by Rohit Yadav
parent a764d2c09d
commit 964deb0245

6
test/integration/smoke/test_iso.py Normal file → Executable file
View File

@ -41,6 +41,9 @@ class TestCreateIso(cloudstackTestCase):
self.services = self.testClient.getParsedTestDataConfig()
self.apiclient = self.testClient.getApiClient()
self.dbclient = self.testClient.getDbConnection()
self.hypervisor = self.testClient.getHypervisorInfo()
if self.hypervisor.lower() in ['lxc']:
self.skipTest("ISOs are not supported on %s" % self.hypervisor)
# Get Zone, Domain and templates
self.domain = get_domain(self.apiclient)
self.zone = get_zone(self.apiclient, self.testClient.getZoneForTests())
@ -150,7 +153,7 @@ class TestISO(cloudstackTestCase):
cls._cleanup = []
cls.unsupportedHypervisor = False
cls.hypervisor = get_hypervisor_type(cls.apiclient)
if cls.hypervisor.lower() == "simulator":
if cls.hypervisor.lower() in ["simulator", "lxc"]:
cls.unsupportedHypervisor = True
return
@ -230,7 +233,6 @@ class TestISO(cloudstackTestCase):
self.apiclient = self.testClient.getApiClient()
self.dbclient = self.testClient.getDbConnection()
self.cleanup = []
if self.unsupportedHypervisor:
self.skipTest("Skipping test because unsupported hypervisor\
%s" % self.hypervisor)