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:
Gaurav Aradhye 2015-05-29 12:35:28 +05:30
parent 161cc194d5
commit 8315be61ad
1 changed files with 9 additions and 1 deletions

View File

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