Browse Source

Merge "Fix test_port_pool when namespace is created"

changes/82/825182/1
Zuul 4 months ago committed by Gerrit Code Review
parent
commit
871fe9ece6
  1. 4
      kuryr_tempest_plugin/tests/scenario/test_port_pool.py

4
kuryr_tempest_plugin/tests/scenario/test_port_pool.py

@ -95,6 +95,7 @@ class TestPortPoolScenario(base.BaseKuryrScenarioTest):
pool_batch = self.PORTS_POOL_DEFAULT_DICT['ports_pool_batch']
if CONF.kuryr_kubernetes.trigger_namespace_upon_pod:
port_list_num = 1
# create a pod to test the port pool increase
pod_name1, _ = self.create_pod(namespace=namespace_name,
labels={'type': 'demo'})
subnet_id = self.get_subnet_id_for_ns(namespace_name)
@ -103,6 +104,9 @@ class TestPortPoolScenario(base.BaseKuryrScenarioTest):
port_list_num = self.check_initial_ports_num(subnet_id,
namespace_name,
pool_batch)
# create a pod to test the port pool increase
pod_name1, _ = self.create_pod(namespace=namespace_name,
labels={'type': 'demo'})
# port number should increase by ports_pool_batch value
updated_port_list_num = len(self.os_admin.ports_client.list_ports(

Loading…
Cancel
Save