Skip to content

Commit dd5b02a

Browse files
authored
Merge pull request #2066 from myENA/bug/CLOUDSTACK-9893-fix_virtio_scsi_smoke
CLOUDSTACK-9893 / CLOUDSTACK-8239 fix test_deploy_virtio_scsi_vm.py
2 parents 11bc262 + 91e237c commit dd5b02a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/integration/smoke/test_deploy_virtio_scsi_vm.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self):
6767
"format": "qcow2",
6868
"hypervisor": "kvm",
6969
"ostype": "Other PV Virtio-SCSI (64-bit)",
70-
"url": "http://dl.openvm.eu/cloudstack/ubuntu/vanilla/16.04/x86_64/ubuntu-16.04-server-cloudimg-amd64-disk1-kvm.qcow2.bz2",
70+
"url": "http://dl.openvm.eu/cloudstack/ubuntu/x86_64/ubuntu-16.04-kvm.qcow2.bz2",
7171
"requireshvm": True,
7272
"ispublic": True,
7373
"passwordenabled": True
@@ -100,10 +100,10 @@ def setUpClass(cls):
100100
cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests())
101101
cls.pod = get_pod(cls.apiclient, cls.zone.id)
102102
cls.services['mode'] = cls.zone.networktype
103+
cls._cleanup = []
103104
if cls.hypervisor.lower() not in ['kvm']:
104105
cls.hypervisorNotSupported = True
105106
return
106-
cls._cleanup = []
107107
kvmvirtioscsi = Templates().templates["kvmvirtioscsi"]
108108
cls.template = Template.register(
109109
cls.apiclient,
@@ -127,7 +127,7 @@ def setUpClass(cls):
127127

128128
cls.service_offering = ServiceOffering.create(
129129
cls.apiclient,
130-
cls.services["service_offerings"]["tiny"]
130+
cls.services["service_offerings"]["small"]
131131
)
132132

133133

@@ -284,7 +284,7 @@ def test_01_verify_libvirt(self):
284284

285285
# Validate virsh dumpxml
286286
if self.hypervisorNotSupported:
287-
self.skipTest
287+
self.skipTest("Hypervisor not supported")
288288

289289
self.verifyVirshState(2)
290290

@@ -294,7 +294,7 @@ def test_02_verify_libvirt_after_restart(self):
294294
"""
295295

296296
if self.hypervisorNotSupported:
297-
self.skipTest
297+
self.skipTest("Hypervisor not supported")
298298

299299
self.virtual_machine.stop(self.apiclient)
300300
self.virtual_machine.start(self.apiclient)
@@ -305,7 +305,7 @@ def test_03_verify_libvirt_attach_disk(self):
305305
""" Verify that libvirt settings are expected after a disk add
306306
"""
307307
if self.hypervisorNotSupported:
308-
self.skipTest
308+
self.skipTest("Hypervisor not supported")
309309

310310
self.volume = Volume.create(
311311
self.apiclient,
@@ -329,7 +329,7 @@ def test_04_verify_guest_lspci(self):
329329
"""
330330

331331
if self.hypervisorNotSupported:
332-
self.skipTest
332+
self.skipTest("Hypervisor not supported")
333333

334334
self.verifyGuestState(3)
335335

@@ -339,7 +339,7 @@ def test_05_change_vm_ostype_restart(self):
339339
explicitly to scsi.
340340
"""
341341
if self.hypervisorNotSupported:
342-
self.skipTest
342+
self.skipTest("Hypervisor not supported")
343343

344344
self.virtual_machine.stop(self.apiclient)
345345
ostypes = GuestOs.listMapping(self.apiclient, hypervisor="kvm")
@@ -367,7 +367,7 @@ def test_06_verify_guest_lspci_again(self):
367367
""" Verify that guest sees scsi controller and disks after switching ostype and rdc
368368
"""
369369
if self.hypervisorNotSupported:
370-
self.skipTest
370+
self.skipTest("Hypervisor not supported")
371371

372372
self.verifyGuestState(3)
373373

0 commit comments

Comments
 (0)