Added Tempest fix
- For lbaas pool api cases - Provider backend verification case - Provide network cases fix Change-Id: I451e8d5dfdfb1194f25a4f5fd560208ce736fd04
This commit is contained in:
parent
f4912d5e94
commit
2b16aba0e2
@ -58,11 +58,13 @@ class ProviderNetworks(feature_manager.FeatureManager):
|
|||||||
vxlan_flag = 0
|
vxlan_flag = 0
|
||||||
for tz in out:
|
for tz in out:
|
||||||
if "transport_type" in tz.keys() and \
|
if "transport_type" in tz.keys() and \
|
||||||
(vlan_flag == 0 or vxlan_flag == 0):
|
(vlan_flag == 0 or vxlan_flag == 0):
|
||||||
if vxlan_flag == 0 and tz['transport_type'] == "OVERLAY":
|
if vxlan_flag == 0 and tz['transport_type'] == "OVERLAY"\
|
||||||
|
and tz['_create_user'] == 'admin':
|
||||||
cls.overlay_id = tz['id']
|
cls.overlay_id = tz['id']
|
||||||
vxlan_flag = 1
|
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']
|
cls.vlan_id = tz['id']
|
||||||
vlan_flag = 1
|
vlan_flag = 1
|
||||||
|
|
||||||
|
@ -60,6 +60,7 @@ class TestPools(base.BaseTestCase):
|
|||||||
protocol='HTTP', protocol_port=PROTOCOL_PORT,
|
protocol='HTTP', protocol_port=PROTOCOL_PORT,
|
||||||
wait=True)
|
wait=True)
|
||||||
listener_id = listener.get('id')
|
listener_id = listener.get('id')
|
||||||
|
self.addCleanup(self._delete_listener, listener_id)
|
||||||
response = self._create_pool(protocol=protocol,
|
response = self._create_pool(protocol=protocol,
|
||||||
lb_algorithm=lb_algorithm,
|
lb_algorithm=lb_algorithm,
|
||||||
listener_id=listener_id,
|
listener_id=listener_id,
|
||||||
|
@ -162,8 +162,8 @@ class ProviderSecurityGroupTest(base.BaseAdminNetworkTest):
|
|||||||
if CONF.network.backend == 'nsxp':
|
if CONF.network.backend == 'nsxp':
|
||||||
self.assertNotEmpty(self.nsxp.get_firewall_section(
|
self.assertNotEmpty(self.nsxp.get_firewall_section(
|
||||||
sg_name, sg_id, 'default'))
|
sg_name, sg_id, 'default'))
|
||||||
self.assertNotEmpty(self.nsxp.get_firewall_section(sg_name, sg_id,
|
self.assertNotEmpty(self.nsxp.get_firewall_section(
|
||||||
nsxp=True))
|
sg_name, sg_id, os_tenant_id='default'))
|
||||||
else:
|
else:
|
||||||
self.assertNotEmpty(self.nsx.get_firewall_section(sg_name, sg_id))
|
self.assertNotEmpty(self.nsx.get_firewall_section(sg_name, sg_id))
|
||||||
|
|
||||||
|
@ -57,11 +57,13 @@ class ProviderNetworks(feature_manager.FeatureManager):
|
|||||||
vxlan_flag = 0
|
vxlan_flag = 0
|
||||||
for tz in out:
|
for tz in out:
|
||||||
if "transport_type" in tz.keys() and \
|
if "transport_type" in tz.keys() and \
|
||||||
(vlan_flag == 0 or vxlan_flag == 0):
|
(vlan_flag == 0 or vxlan_flag == 0):
|
||||||
if vxlan_flag == 0 and tz['transport_type'] == "OVERLAY":
|
if vxlan_flag == 0 and tz['transport_type'] == "OVERLAY"\
|
||||||
|
and tz['_create_user'] == 'admin':
|
||||||
cls.overlay_id = tz['id']
|
cls.overlay_id = tz['id']
|
||||||
vxlan_flag = 1
|
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']
|
cls.vlan_id = tz['id']
|
||||||
vlan_flag = 1
|
vlan_flag = 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user