File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -733,6 +733,12 @@ def test_04_deploy_vm_for_other_user_and_test_vm_operations(self):
733733 self .exec_command ("self.user_apiclient" , command , expected = False )
734734 self .exec_command ("self.otheruser_apiclient" , command , expected = True )
735735
736+ # 21a. Start vm2 before destroying - as restore VM removes root volume causing failure to destroy VM on VMware
737+ if self .hypervisor .lower () in ["vmware" ]:
738+ command = """self.virtual_machine.start({apiclient})"""
739+ self .exec_command ("self.user_apiclient" , command , expected = False )
740+ self .exec_command ("self.otheruser_apiclient" , command , expected = True )
741+
736742 # 22. Destroy vm2, should succeed by vm owner
737743 command = """self.virtual_machine.delete({apiclient}, expunge=False)"""
738744 self .exec_command ("self.user_apiclient" , command , expected = False )
You can’t perform that action at this time.
0 commit comments