Skip to content

Commit fca8503

Browse files
committed
Smoke test vmware: Fix test_network_permission failure seen on vmware
1 parent 431e4f9 commit fca8503

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/integration/smoke/test_network_permissions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)