Do not update agents "alive" state in TestAgentApi
During the execution of FT TestAgentApi, we should not update the
chassis agents "alive" state; during the FT execution, some of the
agents returned by "agents_from_chassis" do not really exist (not
relevant for the test case).
Change-Id: Ied5bdca2a3b3832f11d42614d609d0849111ae1a
Closes-Bug: #1897921
(cherry picked from commit be7882be27
)
This commit is contained in:
parent
af9b20637c
commit
3ca5b3a5de
|
@ -754,6 +754,8 @@ class TestAgentApi(base.TestOVNFunctionalBase):
|
|||
agent = {'agent_type': 'test', 'binary': '/bin/test',
|
||||
'host': self.host, 'topic': 'test_topic'}
|
||||
self.plugin.create_or_update_agent(self.context, agent)
|
||||
mock.patch.object(self.mech_driver, 'ping_all_chassis',
|
||||
return_value=False).start()
|
||||
|
||||
def get_agent(self, agent_type):
|
||||
return next(iter(self.plugin.get_agents(
|
||||
|
|
Loading…
Reference in New Issue