neutron/neutron/tests/unit
Flavio Fernandes f1cc1bb281 [ovn]: Fix l3_plugin.add_router_interface to comply with RouterPluginBase
OVNL3RouterPlugin inherits from L3_NAT_dbonly_mixin, which inherits
from neutron.extensions.l3.RouterPluginBase

As maintenance task expects OVNL3RouterPlugin to behave as
RouterPluginBase, the add_router_interface should have the signature:

  add_router_interface(self, context, router_id, interface_info)

Note: With this change, the default behavior of OVNL3RouterPlugin's
_add_neutron_router_interface becomes idem-potent: multiple calls to add
the same interface will not fail. Because of that, the unit test
test_router_add_interface_dup_port no longer makes sense and is being
removed.

Closes-Bug: #1876148
Change-Id: I8010113b4d8c66ecbccf3126f322a8836d92e7ba
Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
2020-05-05 06:56:20 -04:00
..
agent Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
api Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
cmd Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
common Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
db Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
debug Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
extensions [ovn]: Fix l3_plugin.add_router_interface to comply with RouterPluginBase 2020-05-05 06:56:20 -04:00
hacking Allow usage of assert_called_once method in unit tests 2020-03-02 14:17:26 +02:00
ipam Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
notifiers Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
objects Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
pecan_wsgi Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
plugins [ovn]: Fix l3_plugin.add_router_interface to comply with RouterPluginBase 2020-05-05 06:56:20 -04:00
privileged Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
quota Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
scheduler Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
services Merge "Switch to new engine facade in revision plugin's UT" 2020-04-30 22:20:03 +00:00
tests Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
fake_resources.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_service.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_worker.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_wsgi.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
testlib_api.py use SqlFixture and StaticSqlFixture from neutron-lib 2019-07-08 11:26:34 -06:00