mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8515: Skipping snapshot test cases for HyperV and LXC
Signed-off-by: Gaurav Aradhye <gaurav.aradhye@clogeny.com> This closes #324
This commit is contained in:
parent
161cc194d5
commit
8315be61ad
|
|
@ -148,6 +148,12 @@ class TestConcurrentSnapshots(cloudstackTestCase):
|
|||
cls.testdata["ostype"])
|
||||
|
||||
cls._cleanup = []
|
||||
cls.vm_pool = []
|
||||
cls.snapshotSupported = True
|
||||
|
||||
if cls.hypervisor.lower() in ["hyperv", "lxc"]:
|
||||
cls.snapshotSupported = False
|
||||
return
|
||||
|
||||
# Set sleep time as per Snapshot Recurring Policy - HOURLY
|
||||
cls.sleep_time_for_hourly_policy = 60 * 60 * 1
|
||||
|
|
@ -177,7 +183,6 @@ class TestConcurrentSnapshots(cloudstackTestCase):
|
|||
)
|
||||
cls._cleanup.append(cls.service_offering)
|
||||
|
||||
cls.vm_pool = []
|
||||
for i in range(4):
|
||||
cls.vm = VirtualMachine.create(
|
||||
cls.apiclient,
|
||||
|
|
@ -236,6 +241,9 @@ class TestConcurrentSnapshots(cloudstackTestCase):
|
|||
self.dbclient = self.testClient.getDbConnection()
|
||||
self.cleanup = []
|
||||
|
||||
if not self.snapshotSupported:
|
||||
self.skipTest("Snapshot is not supported on %s" % self.hypervisor)
|
||||
|
||||
def tearDown(self):
|
||||
try:
|
||||
cleanup_resources(self.apiclient, self.cleanup)
|
||||
|
|
|
|||
Loading…
Reference in New Issue