CLOUDSTACK-8374: Adding tests for guest traffic port group verification - VPC network

This commit is contained in:
Gaurav Aradhye 2015-04-14 15:30:21 +05:30
parent 9777e90504
commit e81161def8
1 changed files with 14 additions and 1 deletions

View File

@ -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