Updated MAC Learning Case with Platform(MP & Policy) verification & Explicit Wait
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_mac_learning.NSXv3MacLearningTest.test_create_update_delete_mac_learning_port [160.803813s] ... ok Change-Id: I298ea1ff9902b42eb031411dca8b2b13b9edc67b
This commit is contained in:
parent
68f2843f67
commit
7f0b225e83
@ -435,6 +435,20 @@ class NSXv3MacLearningTest(base.BaseNetworkTest):
|
||||
Delete port
|
||||
"""
|
||||
test_port = self._create_mac_learn_enabled_port(self.network)
|
||||
if CONF.network.backend == 'nsxp':
|
||||
time.sleep(constants.NSXP_BACKEND_SMALL_TIME_INTERVAL)
|
||||
nsx_network = self.nsxp.get_logical_switch(self.network['name'],
|
||||
self.network['id'])
|
||||
create_nsx_port = self.nsxp.get_logical_port(
|
||||
test_port['name'], nsx_network)
|
||||
self.assertEqual(create_nsx_port['display_name'],
|
||||
test_port['name'],
|
||||
"Create port names do not match Pol OS and NSX")
|
||||
create_nsx_port = self.nsx.get_logical_port(test_port['name'])
|
||||
self.assertEqual(create_nsx_port['display_name'],
|
||||
test_port['name'],
|
||||
"Create port names do not match MP OS and NSX")
|
||||
time.sleep(constants.NSXP_BACKEND_SMALL_TIME_INTERVAL)
|
||||
new_port_name = data_utils.rand_name('updated_port-')
|
||||
updated_port = self.update_port(test_port,
|
||||
name=new_port_name)
|
||||
@ -444,6 +458,9 @@ class NSXv3MacLearningTest(base.BaseNetworkTest):
|
||||
self.network['id'])
|
||||
updated_nsx_port = self.nsxp.get_logical_port(
|
||||
updated_port['name'], nsx_network)
|
||||
self.assertEqual(updated_nsx_port['display_name'],
|
||||
updated_port['name'],
|
||||
"Updated port names do not match Pol OS and NSX")
|
||||
updated_nsx_port = self.nsx.get_logical_port(updated_port['name'])
|
||||
self.assertEqual(updated_nsx_port['display_name'],
|
||||
updated_port['name'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user