Browse Source

nsxv fixes

Change-Id: If9582116ab43fafa862afa63112e192ecc08566e
changes/29/719329/2
dkumbhar 3 months ago
parent
commit
5735e66c2f
3 changed files with 11 additions and 6 deletions
  1. +1
    -0
      vmware_nsx_tempest_plugin/tests/nsxv/api/test_router_sizes.py
  2. +5
    -3
      vmware_nsx_tempest_plugin/tests/nsxv/api/test_subnets.py
  3. +5
    -3
      vmware_nsx_tempest_plugin/tests/nsxv/api/test_vlan_network.py

+ 1
- 0
vmware_nsx_tempest_plugin/tests/nsxv/api/test_router_sizes.py View File

@@ -86,6 +86,7 @@ class RouterSizeBaseTest(base.BaseAdminNetworkTest):
external_gateway_info=ext_gw_info,
router_type='exclusive',
router_size=router_size)
self.routers_client.http_obj.connection_pool_kw['timeout'] = 600
router = self.routers_client.create_router(**rtr_cfg)
router = router.get('router', router)
self.routers.append(router)


+ 5
- 3
vmware_nsx_tempest_plugin/tests/nsxv/api/test_subnets.py View File

@@ -69,9 +69,11 @@ class SubnetTestJSON(base.BaseAdminNetworkTest):
@classmethod
def resource_setup(cls):
super(SubnetTestJSON, cls).resource_setup()
for k, v in cls._provider_network_body.items():
if not v:
cls._provider_network_body.pop(k)
temp_dict = {}
for parameter in sorted(cls._provider_network_body.items()):
if parameter[1]:
temp_dict[parameter[0]] = parameter[1]
cls._provider_network_body = temp_dict
body = cls.create_network(client=cls.admin_networks_client,
**cls._provider_network_body)
cls.network = body['network']


+ 5
- 3
vmware_nsx_tempest_plugin/tests/nsxv/api/test_vlan_network.py View File

@@ -75,9 +75,11 @@ class VlanNetworksTestJSON(SNET.SubnetTestJSON):
'provider:physical_network': VLAN_PHYSICAL_NETWORK,
'provider:segmentation_id': segmentation_id}
post_body.update(kwargs)
for k, v in post_body.items():
if not v:
post_body.pop(k)
temp_dict = {}
for parameter in sorted(post_body.items()):
if parameter[1]:
temp_dict[parameter[0]] = parameter[1]
post_body = temp_dict
LOG.debug("create VLAN network: %s", str(post_body))
body = self.create_network(**post_body)
network = body['network']


Loading…
Cancel
Save