From e5c84c765c1269b5ae512f6d3fe3f0ed7f74c701 Mon Sep 17 00:00:00 2001 From: Genadi Chereshnya Date: Sun, 18 Nov 2018 16:33:04 +0200 Subject: [PATCH] Check the number of neutron ports after controller restart When port pool enabled, after restart of kuryr controller the number of neutron ports should be the same Change-Id: Ic6905d2f57a4f37cd70618c416ff37446bbef746 --- kuryr_tempest_plugin/tests/scenario/test_port_pool.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kuryr_tempest_plugin/tests/scenario/test_port_pool.py b/kuryr_tempest_plugin/tests/scenario/test_port_pool.py index 3af60da0..26b4c332 100644 --- a/kuryr_tempest_plugin/tests/scenario/test_port_pool.py +++ b/kuryr_tempest_plugin/tests/scenario/test_port_pool.py @@ -72,6 +72,14 @@ class TestPortPoolScenario(base.BaseKuryrScenarioTest): # kuryr-controller self.restart_kuryr_controller() + port_list_num_after_restart = len( + self.os_admin.ports_client.list_ports( + fixed_ips='subnet_id=%s' % subnet_id)['ports']) + self.assertEqual(updated_port_list_num, port_list_num_after_restart, + "Number of Neutron ports on namespace %s subnet " + "changed after kuryr-controller " + "restart" % namespace_name) + # create additional pod pod_name3, _ = self.create_pod(namespace=namespace_name)