mirror of https://github.com/apache/cloudstack.git
Smoke test vmware: Fix test_network_permission failure seen on vmware
This commit is contained in:
parent
431e4f9e1d
commit
fca85033fc
|
|
@ -733,6 +733,12 @@ class TestNetworkPermissions(cloudstackTestCase):
|
||||||
self.exec_command("self.user_apiclient", command, expected=False)
|
self.exec_command("self.user_apiclient", command, expected=False)
|
||||||
self.exec_command("self.otheruser_apiclient", command, expected=True)
|
self.exec_command("self.otheruser_apiclient", command, expected=True)
|
||||||
|
|
||||||
|
# 21a. Start vm2 before destroying - as restore VM removes root volume causing failure to destroy VM on VMware
|
||||||
|
if self.hypervisor.lower() in ["vmware"]:
|
||||||
|
command = """self.virtual_machine.start({apiclient})"""
|
||||||
|
self.exec_command("self.user_apiclient", command, expected=False)
|
||||||
|
self.exec_command("self.otheruser_apiclient", command, expected=True)
|
||||||
|
|
||||||
# 22. Destroy vm2, should succeed by vm owner
|
# 22. Destroy vm2, should succeed by vm owner
|
||||||
command = """self.virtual_machine.delete({apiclient}, expunge=False)"""
|
command = """self.virtual_machine.delete({apiclient}, expunge=False)"""
|
||||||
self.exec_command("self.user_apiclient", command, expected=False)
|
self.exec_command("self.user_apiclient", command, expected=False)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue