mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8394: Skipping recurring snapshot test cases for Hyperv and LXC
Signed-off-by: Gaurav Aradhye <gaurav.aradhye@clogeny.com> This closes #267
This commit is contained in:
parent
dacdf97427
commit
166df0f153
@ -144,6 +144,14 @@ class TestRecurringSnapshots(cloudstackTestCase):
|
|||||||
cls.testClient = super(TestRecurringSnapshots, cls).getClsTestClient()
|
cls.testClient = super(TestRecurringSnapshots, cls).getClsTestClient()
|
||||||
cls.api_client = cls.testClient.getApiClient()
|
cls.api_client = cls.testClient.getApiClient()
|
||||||
|
|
||||||
|
cls._cleanup = []
|
||||||
|
|
||||||
|
cls.unsupportedHypervisor = False
|
||||||
|
cls.hypervisor = cls.testClient.getHypervisorInfo()
|
||||||
|
if cls.hypervisor.lower() in ['hyperv', "lxc"]:
|
||||||
|
cls.unsupportedHypervisor = True
|
||||||
|
return
|
||||||
|
|
||||||
cls.services = Services().services
|
cls.services = Services().services
|
||||||
# Get Zone, Domain and templates
|
# Get Zone, Domain and templates
|
||||||
cls.domain = get_domain(cls.api_client)
|
cls.domain = get_domain(cls.api_client)
|
||||||
@ -153,6 +161,7 @@ class TestRecurringSnapshots(cloudstackTestCase):
|
|||||||
cls.api_client,
|
cls.api_client,
|
||||||
cls.services["disk_offering"]
|
cls.services["disk_offering"]
|
||||||
)
|
)
|
||||||
|
cls._cleanup.append(cls.disk_offering)
|
||||||
template = get_template(
|
template = get_template(
|
||||||
cls.api_client,
|
cls.api_client,
|
||||||
cls.zone.id,
|
cls.zone.id,
|
||||||
@ -175,6 +184,7 @@ class TestRecurringSnapshots(cloudstackTestCase):
|
|||||||
cls.services["account"],
|
cls.services["account"],
|
||||||
domainid=cls.domain.id
|
domainid=cls.domain.id
|
||||||
)
|
)
|
||||||
|
cls._cleanup.append(cls.account)
|
||||||
|
|
||||||
cls.services["account"] = cls.account.name
|
cls.services["account"] = cls.account.name
|
||||||
|
|
||||||
@ -182,6 +192,7 @@ class TestRecurringSnapshots(cloudstackTestCase):
|
|||||||
cls.api_client,
|
cls.api_client,
|
||||||
cls.services["service_offering"]
|
cls.services["service_offering"]
|
||||||
)
|
)
|
||||||
|
cls._cleanup.append(cls.service_offering)
|
||||||
cls.virtual_machine_with_disk = \
|
cls.virtual_machine_with_disk = \
|
||||||
VirtualMachine.create(
|
VirtualMachine.create(
|
||||||
cls.api_client,
|
cls.api_client,
|
||||||
@ -200,11 +211,6 @@ class TestRecurringSnapshots(cloudstackTestCase):
|
|||||||
domainid=cls.account.domainid,
|
domainid=cls.account.domainid,
|
||||||
serviceofferingid=cls.service_offering.id
|
serviceofferingid=cls.service_offering.id
|
||||||
)
|
)
|
||||||
cls._cleanup = [
|
|
||||||
cls.service_offering,
|
|
||||||
cls.disk_offering,
|
|
||||||
cls.account,
|
|
||||||
]
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -220,6 +226,9 @@ class TestRecurringSnapshots(cloudstackTestCase):
|
|||||||
self.apiclient = self.testClient.getApiClient()
|
self.apiclient = self.testClient.getApiClient()
|
||||||
self.dbclient = self.testClient.getDbConnection()
|
self.dbclient = self.testClient.getDbConnection()
|
||||||
self.cleanup = []
|
self.cleanup = []
|
||||||
|
|
||||||
|
if self.unsupportedHypervisor:
|
||||||
|
self.skipTest("Snapshots feature is not supported on Hyper-V/LXC")
|
||||||
return
|
return
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user