From b93e998d20dcdab79bc524669c7030585b076150 Mon Sep 17 00:00:00 2001 From: Bryan Lima Date: Mon, 16 Sep 2024 10:26:49 -0300 Subject: [PATCH] Change exception message on smoke tests --- test/integration/smoke/test_vm_strict_host_tags.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/smoke/test_vm_strict_host_tags.py b/test/integration/smoke/test_vm_strict_host_tags.py index 163869c8fae5..6e085e497b7a 100644 --- a/test/integration/smoke/test_vm_strict_host_tags.py +++ b/test/integration/smoke/test_vm_strict_host_tags.py @@ -190,7 +190,7 @@ def test_06_deploy_vm_on_any_host_with_strict_tags_failure(self): self.cleanup.append(vm) self.fail("VM should not be deployed") except Exception as e: - self.assertTrue("No suitable host found for vm " in str(e)) + self.assertTrue("Unable to create a deployment for " in str(e)) class TestScaleVMStrictTags(cloudstackTestCase): @@ -310,7 +310,7 @@ def test_02_scale_vm_strict_tags_failure(self): vm.start(self.apiclient) self.fail("VM should not be be able scale and start") except Exception as e: - self.assertTrue("No suitable host found for vm " in str(e)) + self.assertTrue("Unable to create a deployment for " in str(e)) class TestRestoreVMStrictTags(cloudstackTestCase): @@ -423,7 +423,7 @@ def test_02_restore_vm_strict_tags_failure(self): vm.restore(self.apiclient, templateid=self.template_t2.id, expunge=True) self.fail("VM should not be restored") except Exception as e: - self.assertTrue("No suitable host found for vm " in str(e)) + self.assertTrue("Unable to create a deployment for " in str(e)) class TestMigrateVMStrictTags(cloudstackTestCase):