|
16 | 16 | # under the License. |
17 | 17 |
|
18 | 18 | # Import Local Modules |
19 | | -from marvin.codes import FAILED |
| 19 | +from marvin.codes import FAILED, KVM |
20 | 20 | from nose.plugins.attrib import attr |
21 | | -from marvin.cloudstackTestCase import * |
22 | | -from marvin.cloudstackAPI import * |
23 | | -from marvin.lib.utils import * |
24 | | -from marvin.lib.base import * |
25 | | -from marvin.lib.common import * |
| 21 | +from marvin.cloudstackTestCase import cloudstackTestCase, unittest |
| 22 | +from marvin.cloudstackAPI import startVirtualMachine |
| 23 | +from marvin.lib.utils import random_gen, cleanup_resources |
| 24 | +from marvin.lib.base import (Account, |
| 25 | + ServiceOffering, |
| 26 | + VirtualMachine, |
| 27 | + VmSnapshot) |
| 28 | +from marvin.lib.common import (get_zone, |
| 29 | + get_domain, |
| 30 | + get_template, |
| 31 | + list_virtual_machines) |
| 32 | +import time |
26 | 33 |
|
27 | 34 | class TestVmSnapshot(cloudstackTestCase): |
28 | 35 |
|
29 | 36 | @classmethod |
30 | 37 | def setUpClass(cls): |
31 | | - testClient = super(TestVmSnapshot, cls).getClsTestClient() |
| 38 | + testClient = super(TestVmSnapshot, cls).getClsTestClient() |
| 39 | + |
| 40 | + hypervisor = testClient.getHypervisorInfo() |
| 41 | + if hypervisor.lower() == KVM.lower(): |
| 42 | + raise unittest.SkipTest("VM snapshot feature is not supported on KVM") |
| 43 | + |
32 | 44 | cls.apiclient = testClient.getApiClient() |
33 | 45 | cls.services = testClient.getParsedTestDataConfig() |
34 | 46 | # Get Zone, Domain and templates |
|
0 commit comments