[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
This commit is contained in:
Rodolfo Alonso Hernandez 2024-08-14 15:20:11 +00:00
parent 52dfaa344c
commit b6b2154faf

View File

@ -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):