diff --git a/test/integration/component/test_vpc_vm_life_cycle.py b/test/integration/component/test_vpc_vm_life_cycle.py index d146af10b05..e185e968b76 100644 --- a/test/integration/component/test_vpc_vm_life_cycle.py +++ b/test/integration/component/test_vpc_vm_life_cycle.py @@ -43,7 +43,8 @@ from marvin.lib.common import (get_domain, wait_for_cleanup, list_virtual_machines, list_hosts, - findSuitableHostForMigration) + findSuitableHostForMigration, + verifyGuestTrafficPortGroups) from marvin.codes import PASS, ERROR_NO_HOST_FOR_MIGRATION @@ -1734,6 +1735,7 @@ class TestVMLifeCycleBothIsolated(cloudstackTestCase): cls.api_client = cls.testClient.getApiClient() cls.services = Services().services + cls.hypervisor = cls.testClient.getHypervisorInfo() # Get Zone, Domain and templates cls.domain = get_domain(cls.api_client) cls.zone = get_zone(cls.api_client, cls.testClient.getZoneForTests()) @@ -2060,6 +2062,17 @@ class TestVMLifeCycleBothIsolated(cloudstackTestCase): ) return + @attr(tags=["advanced", "dvs"], required_hardware="true") + def test_guest_traffic_port_groups_vpc_network(self): + """ Verify port groups are created for guest traffic + used by vpc network """ + + if self.hypervisor.lower() == "vmware": + response = verifyGuestTrafficPortGroups(self.apiclient, + self.config, + self.zone) + assert response[0] == PASS, response[1] + class TestVMLifeCycleStoppedVPCVR(cloudstackTestCase): @classmethod