Skip VPC tests on LXC

This closes #470
This commit is contained in:
Sanjeev Neelarapu 2015-06-17 14:54:59 +05:30 committed by sanjeev
parent 85afa63f24
commit 17ddb4b100
1 changed files with 4 additions and 3 deletions

7
test/integration/testpaths/testpath_vmlc.py Normal file → Executable file
View File

@ -307,6 +307,7 @@ class TestPathVMLC(cloudstackTestCase):
# cleaned up properly, continue if VM deletion fails,
# because in that case VM is already deleted from the test case
try:
self.virtual_machine.delete(self.apiclient, expunge=True)
except Exception:
self.debug("Exception while destroying VM")
@ -337,7 +338,7 @@ class TestPathVMLC(cloudstackTestCase):
# 13. Find suitable host for VM to migrate and migrate the VM
# 14. Verify VM accessibility on new host
"""
if self.hypervisor.lower() == 'hyperv' and value == VPC_NETWORK:
if self.hypervisor.lower() in ['hyperv', 'lxc'] and value == VPC_NETWORK:
self.skipTest("cann't be run for {} hypervisor".format(self.hypervisor))
# List created service offering in setUpClass by name
@ -737,7 +738,7 @@ class TestPathVMLC(cloudstackTestCase):
# 4. Try to stop the VM in destroyed state, operation should fail
# 5. Try to reboot the VM in destroyed state, operation should fail
"""
if self.hypervisor.lower() == 'hyperv' and value == VPC_NETWORK:
if self.hypervisor.lower() in ['hyperv', 'lxc'] and value == VPC_NETWORK:
self.skipTest("cann't be run for {} hypervisor".format(self.hypervisor))
network = CreateNetwork(self, value)
networkid = network.id
@ -834,7 +835,7 @@ class TestPathVMLC(cloudstackTestCase):
# 7. Try to recover the VM in expunging state, operation should fail
"""
if self.hypervisor.lower() == 'hyperv' and value == VPC_NETWORK:
if self.hypervisor.lower() in ['hyperv', 'lxc'] and value == VPC_NETWORK:
self.skipTest("cann't be run for {} hypervisor".format(self.hypervisor))
network = CreateNetwork(self, value)
networkid = network.id