mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-04 00:02:37 +01:00
SKIP vm migration tests on LXC since it is not a supported hypervisor
This closes #383
This commit is contained in:
parent
54a664730d
commit
de6538c9e7
9
test/integration/testpaths/testpath_snapshot_hadrning.py
Normal file → Executable file
9
test/integration/testpaths/testpath_snapshot_hadrning.py
Normal file → Executable file
@ -1386,15 +1386,14 @@ class TestHardening(cloudstackTestCase):
|
||||
|
||||
clusterid_tag_mapping = {}
|
||||
cwps_no = 0
|
||||
|
||||
cls.unsupportedHypervisor = False
|
||||
if cls.hypervisor.lower() not in [
|
||||
"vmware",
|
||||
"kvm",
|
||||
"xenserver",
|
||||
"hyper-v"]:
|
||||
raise unittest.SkipTest(
|
||||
"Storage migration not supported on %s" %
|
||||
cls.hypervisor)
|
||||
cls.unsupportedHypervisor = True
|
||||
return
|
||||
|
||||
try:
|
||||
cls.pools = StoragePool.list(
|
||||
@ -1510,6 +1509,8 @@ class TestHardening(cloudstackTestCase):
|
||||
self.apiclient = self.testClient.getApiClient()
|
||||
self.dbclient = self.testClient.getDbConnection()
|
||||
self.cleanup = []
|
||||
if self.unsupportedHypervisor:
|
||||
self.skipTest("VM migration is not supported on %s" % self.hypervisor)
|
||||
|
||||
def tearDown(self):
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user