Skip to content

Commit

Permalink
Change exception message on smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanMLima committed Sep 16, 2024
1 parent ec9b30e commit b93e998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/smoke/test_vm_strict_host_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b93e998

Please sign in to comment.