From b6b2154fafb07cfdb93f90760d494062c5179630 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Wed, 14 Aug 2024 15:20:11 +0000 Subject: [PATCH] [OVN][FT] Ensure the non OVN agent is correctly created This patch checks that the non OVN agent is correctly created in the ``setUp`` method. Related-Bug: #2077942 Change-Id: Ie243e0d4b98be5b17abe3f801d8912639a96606a --- .../plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py b/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py index df382ac77a7..382082f18cb 100644 --- a/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py +++ b/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py @@ -1190,6 +1190,11 @@ class TestAgentApi(base.TestOVNFunctionalBase): agent = {'agent_type': self.TEST_AGENT, 'binary': '/bin/test', 'host': self.host, 'topic': 'test_topic'} _, status = self.plugin.create_or_update_agent(self.context, agent) + # Ensure the non OVN agent has been correctly created. + self.assertEqual( + status['id'], + self.plugin.get_agent(self.context, status['id'])['id'] + ) return status['id'] def _check_chassis_registers(self, present=True):