CLOUDSTACK:8515: Skipping snapshot test case for HyperV and LXC

Signed-off-by: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
This closes #347
This commit is contained in:
Gaurav Aradhye 2015-06-02 16:17:17 +05:30
parent d6052a31a3
commit f2b1ec2c7d
1 changed files with 8 additions and 4 deletions

View File

@ -41,8 +41,7 @@ from marvin.lib.common import (get_zone,
list_volumes,
list_network_offerings,
list_lb_rules,
get_free_vlan,
wait_for_cleanup)
get_free_vlan)
from marvin.lib.utils import cleanup_resources
import random
@ -787,8 +786,10 @@ class TestSnapshots(cloudstackTestCase):
cls.zone = get_zone(cls.api_client, cls.testClient.getZoneForTests())
cls.services['mode'] = cls.zone.networktype
cls.hypervisor = cls.testClient.getHypervisorInfo()
if cls.hypervisor.lower() in ['lxc']:
raise unittest.SkipTest("snapshots are not supported on %s" % cls.hypervisor.lower())
cls._cleanup = []
cls.snapshotSupported = True
if cls.hypervisor.lower() in ['hyperv', 'lxc']:
cls.snapshotSupported = False
cls.template = get_template(
cls.api_client,
@ -863,6 +864,9 @@ class TestSnapshots(cloudstackTestCase):
# 3. Verify snapshot created inside project can only be used in inside
# the project
if not self.snapshotSupported:
self.skipTest("Snapshot is not supported on %s" % self.hypervisor)
self.debug("Deploying VM for Project: %s" % self.project.id)
virtual_machine_1 = VirtualMachine.create(
self.apiclient,