You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pe...@apache.org on 2025/04/24 05:29:33 UTC

(cloudstack) branch fix-ntw-perm-test-vmware created (now 6f02b94e691)

This is an automated email from the ASF dual-hosted git repository.

pearl11594 pushed a change to branch fix-ntw-perm-test-vmware
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


      at 6f02b94e691 Smoke test vmware: Fix test_network_permission failure seen on vmware

This branch includes the following new commits:

     new 6f02b94e691 Smoke test vmware: Fix test_network_permission failure seen on vmware

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(cloudstack) 01/01: Smoke test vmware: Fix test_network_permission failure seen on vmware

Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pearl11594 pushed a commit to branch fix-ntw-perm-test-vmware
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit 6f02b94e69130ec60a95ab78b4348e3becd298e4
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Thu Apr 24 10:59:16 2025 +0530

    Smoke test vmware: Fix test_network_permission failure seen on vmware
---
 test/integration/smoke/test_network_permissions.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/integration/smoke/test_network_permissions.py b/test/integration/smoke/test_network_permissions.py
index cd55c5af745..fe2c685684d 100644
--- a/test/integration/smoke/test_network_permissions.py
+++ b/test/integration/smoke/test_network_permissions.py
@@ -733,6 +733,12 @@ class TestNetworkPermissions(cloudstackTestCase):
         self.exec_command("self.user_apiclient", command, expected=False)
         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
         command = """self.virtual_machine.delete({apiclient}, expunge=False)"""
         self.exec_command("self.user_apiclient", command, expected=False)