Browse Source

impactor+ ussuri port related fixes

Change-Id: I21cd96389c4519762fdc48fd3c7cac60c57007e3
changes/85/781785/2
dkumbhar 1 month ago
parent
commit
187a2d4190
3 changed files with 9 additions and 4 deletions
  1. +3
    -1
      vmware_nsx_tempest_plugin/tests/nsxv3/scenario/test_nsx_port_security.py
  2. +1
    -1
      vmware_nsx_tempest_plugin/tests/nsxv3/scenario/test_octavia_loadbalancers.py
  3. +5
    -2
      vmware_nsx_tempest_plugin/tests/scenario/test_new_case_coverage.py

+ 3
- 1
vmware_nsx_tempest_plugin/tests/nsxv3/scenario/test_nsx_port_security.py View File

@ -132,7 +132,7 @@ class TestNSXv3PortSecurityScenario(manager.NetworkScenarioTest):
def _list_ports(self, *args, **kwargs):
"""List ports using admin creds """
ports_list = self.admin_manager.ports_client.list_ports(
ports_list = self.ports_client.list_ports(
*args, **kwargs)
return ports_list['ports']
@ -140,6 +140,8 @@ class TestNSXv3PortSecurityScenario(manager.NetworkScenarioTest):
network_name=None):
instance_addr = instance["addresses"][network_name]
instance_fixed_ip = instance_addr[0]["addr"]
ipv4 = [addr for addr in instance_addr if addr["version"] == 4]
instance_fixed_ip = ipv4[0]["addr"]
port_id = None
for port in self._list_ports():
if "fixed_ips" in port and len(port["fixed_ips"]) > 0:


+ 1
- 1
vmware_nsx_tempest_plugin/tests/nsxv3/scenario/test_octavia_loadbalancers.py View File

@ -949,7 +949,7 @@ class OctaviaRoundRobin(feature_manager.FeatureManager):
timeout=self.hm_timeout,
max_retries=self.hm_max_retries,
delay=self.hm_delay, default_pool=True)
self.check_project_lbaas()
self.check_project_lbaas(source_ip=True)
@decorators.attr(type='nsxv3')
@decorators.idempotent_id('c5ac8546-6867-4b7a-8544-3843a11b1a34')


+ 5
- 2
vmware_nsx_tempest_plugin/tests/scenario/test_new_case_coverage.py View File

@ -438,7 +438,8 @@ class TestNewCase(feature_manager.FeatureManager):
if port['device_owner'] == "network:dhcp":
kwargs = {"device_owner": "nova:compute"}
self.assertRaises(
exceptions.BadRequest, self.ports_client.update_port,
exceptions.BadRequest,
self.cmgr_adm.ports_client.update_port,
port['id'], **kwargs)
@decorators.idempotent_id('9006123b-91cc-8905-b217-98844caa3423')
@ -461,7 +462,9 @@ class TestNewCase(feature_manager.FeatureManager):
image_id = self.get_glance_image_id(['cirros', "esx"])
self.assertRaises(exceptions.Conflict, self.create_topology_instance,
"state_vm_1", create_floating_ip=False,
image_id=image_id, port=port)
image_id=image_id, port=port,
security_groups='undef',
clients=self.cmgr_adm)
@decorators.idempotent_id('1206016a-91cc-8905-b217-98844caa2212')
@testtools.skipUnless(


Loading…
Cancel
Save