@@ -166,7 +166,7 @@ def test_06_deploy_vm_on_any_host_with_strict_tags_failure(self):
166166 self ._cleanup .append (vm )
167167 self .fail ("VM should not be deployed" )
168168 except Exception as e :
169- self .assertTrue ("No suitable host found for follow compute offering tags: t2 " in str (e ))
169+ self .assertTrue ("No suitable host found for vm " in str (e ))
170170
171171
172172class TestScaleVMStrictTags (cloudstackTestCase ):
@@ -261,7 +261,7 @@ def test_02_scale_vm_strict_tags_failure(self):
261261 vm .start (self .apiclient )
262262 self .fail ("VM should not be be able scale and start" )
263263 except Exception as e :
264- self .assertTrue ("No suitable host found for follow compute offering tags: h2 " in str (e ))
264+ self .assertTrue ("No suitable host found for vm " in str (e ))
265265
266266
267267class TestRestoreVMStrictTags (cloudstackTestCase ):
@@ -333,7 +333,7 @@ def test_01_restore_vm_strict_tags_success(self):
333333
334334 vm .restore (self .apiclient , templateid = self .template_t2 .id , expunge = True )
335335 restored_vm = VirtualMachine .list (self .apiclient , id = vm .id , listall = True )[0 ]
336- self .assertEqual (restored_vm .templateid , self .template_t2 .id , "VM was not scaled " )
336+ self .assertEqual (restored_vm .templateid , self .template_t2 .id , "VM was not restored " )
337337
338338 @attr (tags = ["advanced" , "advancedns" , "ssh" , "smoke" ], required_hardware = "false" )
339339 def test_02_restore_vm_strict_tags_failure (self ):
@@ -349,7 +349,7 @@ def test_02_restore_vm_strict_tags_failure(self):
349349 vm .restore (self .apiclient , templateid = self .template_t2 .id , expunge = True )
350350 self .fail ("VM should not be restored" )
351351 except Exception as e :
352- self .assertTrue ("No suitable host found for follow compute offering tags: t2 " in str (e ))
352+ self .assertTrue ("No suitable host found for vm " in str (e ))
353353
354354class TestMigrateVMStrictTags (cloudstackTestCase ):
355355 @classmethod
0 commit comments