Skip to content

Commit 06fbaf5

Browse files
author
Girish Shilamkar
committed
CLOUDSTACK-6943: Skip VM snapshot tests on KVM
1 parent e054154 commit 06fbaf5

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

test/integration/smoke/test_vm_snapshots.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,31 @@
1616
# under the License.
1717

1818
# Import Local Modules
19-
from marvin.codes import FAILED
19+
from marvin.codes import FAILED, KVM
2020
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
2633

2734
class TestVmSnapshot(cloudstackTestCase):
2835

2936
@classmethod
3037
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+
3244
cls.apiclient = testClient.getApiClient()
3345
cls.services = testClient.getParsedTestDataConfig()
3446
# Get Zone, Domain and templates

0 commit comments

Comments
 (0)