Skip to content

Commit 83c3ea2

Browse files
authored
smoke tests / CI : Fix test_vm_stric_host_tags (#10806)
1 parent 91c1168 commit 83c3ea2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/smoke/test_vm_strict_host_tags.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def test_06_deploy_vm_on_any_host_with_strict_tags_failure(self):
190190
self.cleanup.append(vm)
191191
self.fail("VM should not be deployed")
192192
except Exception as e:
193-
self.assertTrue("No suitable host found for vm " in str(e))
193+
self.assertTrue("No destination found for a deployment for VM instance" in str(e))
194194

195195

196196
class TestScaleVMStrictTags(cloudstackTestCase):
@@ -310,7 +310,7 @@ def test_02_scale_vm_strict_tags_failure(self):
310310
vm.start(self.apiclient)
311311
self.fail("VM should not be be able scale and start")
312312
except Exception as e:
313-
self.assertTrue("No suitable host found for vm " in str(e))
313+
self.assertTrue("Unable to orchestrate the start of VM instance" in str(e))
314314

315315

316316
class TestRestoreVMStrictTags(cloudstackTestCase):
@@ -423,7 +423,7 @@ def test_02_restore_vm_strict_tags_failure(self):
423423
vm.restore(self.apiclient, templateid=self.template_t2.id, expunge=True)
424424
self.fail("VM should not be restored")
425425
except Exception as e:
426-
self.assertTrue("No suitable host found for vm " in str(e))
426+
self.assertTrue("Unable to start VM with specified id" in str(e))
427427

428428

429429
class TestMigrateVMStrictTags(cloudstackTestCase):

0 commit comments

Comments
 (0)