Merge "Set report_interval to 0 for ovs agent unit tests"

This commit is contained in:
Zuul 2021-11-25 10:24:27 +00:00 committed by Gerrit Code Review
commit 90b5456b8c

View File

@ -129,6 +129,8 @@ class TestOvsNeutronAgent(object):
cfg.CONF.set_default('quitting_rpc_timeout', 10, 'AGENT')
cfg.CONF.set_default('local_ip', '127.0.0.1', 'OVS')
cfg.CONF.set_default('host', 'host')
# Set report_interval to 0 so rpc calls responds immediately
cfg.CONF.set_override('report_interval', 0, 'AGENT')
mock.patch(
'neutron.agent.ovsdb.native.helpers.enable_connection_uri').start()
mock.patch(
@ -3041,6 +3043,8 @@ class TestOvsDvrNeutronAgent(object):
cfg.CONF.set_default('firewall_driver',
'neutron.agent.firewall.NoopFirewallDriver',
group='SECURITYGROUP')
# Set report_interval to 0 so rpc calls responds immediately
cfg.CONF.set_override('report_interval', 0, 'AGENT')
mock.patch('neutron.agent.common.ovs_lib.BaseOVS.config',
new_callable=mock.PropertyMock,