neutron/neutron/tests/unit/db
LIU Yulong 5fdfd4cbfc [L3] Check agent gateway port robustly
In patch [1] it introduced a binding of DB uniq constraint for L3
agent gateway. In some extreme case the DvrFipGatewayPortAgentBinding
is in DB while the gateway port not. The current code path only checks
the binding existence which will pass a "None" port to the following
code path that results an AttributeError. This patch adds a simple check
for that gateway port, if it is not created, new one.

[1] https://review.opendev.org/#/c/702547/

Closes-Bug: #1883089
Change-Id: Ia90f2ee435b0a3476dbea028d3200cefe11e35e4
2020-06-20 03:09:12 +00:00
..
metering use metering api def from neutron-lib 2017-11-03 14:03:20 -06:00
quota Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test__utils.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_agents_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_agentschedulers_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_allowedaddresspairs_db.py Switch to new engine facade in test_allowedaddresspairs_db module 2020-03-20 02:18:04 +01:00
test_db_base_plugin_common.py Replace to_dict() calls with a function decorator 2015-08-03 11:42:25 +03:00
test_db_base_plugin_v2.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_dvr_mac_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_extraroute_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_ipam_backend_mixin.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_ipam_pluggable_backend.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_l3_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_l3_dvr_db.py [L3] Check agent gateway port robustly 2020-06-20 03:09:12 +00:00
test_l3_hamode_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_migration.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_ovn_hash_ring_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_ovn_revision_numbers_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_portsecurity_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_portsecurity_db_common.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_provisioning_blocks.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_rbac_db_mixin.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_securitygroups_db.py Add sg name in after delete event kwargs 2020-05-15 10:10:15 -05:00
test_segments_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00