mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6943: Skip VM snapshot tests on KVM
This commit is contained in:
parent
e054154ca0
commit
06fbaf59cc
@ -16,19 +16,31 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
# Import Local Modules
|
# Import Local Modules
|
||||||
from marvin.codes import FAILED
|
from marvin.codes import FAILED, KVM
|
||||||
from nose.plugins.attrib import attr
|
from nose.plugins.attrib import attr
|
||||||
from marvin.cloudstackTestCase import *
|
from marvin.cloudstackTestCase import cloudstackTestCase, unittest
|
||||||
from marvin.cloudstackAPI import *
|
from marvin.cloudstackAPI import startVirtualMachine
|
||||||
from marvin.lib.utils import *
|
from marvin.lib.utils import random_gen, cleanup_resources
|
||||||
from marvin.lib.base import *
|
from marvin.lib.base import (Account,
|
||||||
from marvin.lib.common import *
|
ServiceOffering,
|
||||||
|
VirtualMachine,
|
||||||
|
VmSnapshot)
|
||||||
|
from marvin.lib.common import (get_zone,
|
||||||
|
get_domain,
|
||||||
|
get_template,
|
||||||
|
list_virtual_machines)
|
||||||
|
import time
|
||||||
|
|
||||||
class TestVmSnapshot(cloudstackTestCase):
|
class TestVmSnapshot(cloudstackTestCase):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
testClient = super(TestVmSnapshot, cls).getClsTestClient()
|
testClient = super(TestVmSnapshot, cls).getClsTestClient()
|
||||||
|
|
||||||
|
hypervisor = testClient.getHypervisorInfo()
|
||||||
|
if hypervisor.lower() == KVM.lower():
|
||||||
|
raise unittest.SkipTest("VM snapshot feature is not supported on KVM")
|
||||||
|
|
||||||
cls.apiclient = testClient.getApiClient()
|
cls.apiclient = testClient.getApiClient()
|
||||||
cls.services = testClient.getParsedTestDataConfig()
|
cls.services = testClient.getParsedTestDataConfig()
|
||||||
# Get Zone, Domain and templates
|
# Get Zone, Domain and templates
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user