Added Tempest fix

- For lbaas pool  api cases
- Provider backend verification case
- Provide network cases fix

Change-Id: I451e8d5dfdfb1194f25a4f5fd560208ce736fd04
This commit is contained in:
shubhamk 2019-12-11 08:37:47 +00:00
parent f4912d5e94
commit 2b16aba0e2
4 changed files with 13 additions and 8 deletions

View File

@ -58,11 +58,13 @@ class ProviderNetworks(feature_manager.FeatureManager):
vxlan_flag = 0
for tz in out:
if "transport_type" in tz.keys() and \
(vlan_flag == 0 or vxlan_flag == 0):
if vxlan_flag == 0 and tz['transport_type'] == "OVERLAY":
(vlan_flag == 0 or vxlan_flag == 0):
if vxlan_flag == 0 and tz['transport_type'] == "OVERLAY"\
and tz['_create_user'] == 'admin':
cls.overlay_id = tz['id']
vxlan_flag = 1
if vlan_flag == 0 and tz['transport_type'] == "VLAN":
if vlan_flag == 0 and tz['transport_type'] == "VLAN"\
and tz['_create_user'] == 'admin':
cls.vlan_id = tz['id']
vlan_flag = 1

View File

@ -60,6 +60,7 @@ class TestPools(base.BaseTestCase):
protocol='HTTP', protocol_port=PROTOCOL_PORT,
wait=True)
listener_id = listener.get('id')
self.addCleanup(self._delete_listener, listener_id)
response = self._create_pool(protocol=protocol,
lb_algorithm=lb_algorithm,
listener_id=listener_id,

View File

@ -162,8 +162,8 @@ class ProviderSecurityGroupTest(base.BaseAdminNetworkTest):
if CONF.network.backend == 'nsxp':
self.assertNotEmpty(self.nsxp.get_firewall_section(
sg_name, sg_id, 'default'))
self.assertNotEmpty(self.nsxp.get_firewall_section(sg_name, sg_id,
nsxp=True))
self.assertNotEmpty(self.nsxp.get_firewall_section(
sg_name, sg_id, os_tenant_id='default'))
else:
self.assertNotEmpty(self.nsx.get_firewall_section(sg_name, sg_id))

View File

@ -57,11 +57,13 @@ class ProviderNetworks(feature_manager.FeatureManager):
vxlan_flag = 0
for tz in out:
if "transport_type" in tz.keys() and \
(vlan_flag == 0 or vxlan_flag == 0):
if vxlan_flag == 0 and tz['transport_type'] == "OVERLAY":
(vlan_flag == 0 or vxlan_flag == 0):
if vxlan_flag == 0 and tz['transport_type'] == "OVERLAY"\
and tz['_create_user'] == 'admin':
cls.overlay_id = tz['id']
vxlan_flag = 1
if vlan_flag == 0 and tz['transport_type'] == "VLAN":
if vlan_flag == 0 and tz['transport_type'] == "VLAN"\
and tz['_create_user'] == 'admin':
cls.vlan_id = tz['id']
vlan_flag = 1