group-based-policy/gbpservice/neutron/tests/unit
Robert Kukura add2c14abd [AIM] Fix legacy SNAT migration
Avoid issues caused by missing NetworkMapping DB records when cleaning
up the legacy plugin's SNAT-related resources. The test_legacy_cleanup
UT is enhanced to create a router and an interfaced internal network
and to delete all mapping and extension records, so that code
manipulating legacy SNAT resources with missing mapping records is
exercised.

Missing NetworkMapping and AddressScopeMapping records are silently
ignored in delete_*_precommit methods. They are logged and ignored in
extend_*_dict methods.

When an AddressScopeMapping or a NetworkMapping record is added, the
corresponding AddressScope or Network instance's aim_mapping
relationship field is updated to reference it. This avoids aim_mapping
being None when the AddressScope or Network instance is subsequently
retrieved from the session cache within the same transaction.

Change-Id: I84f3c401df7c79deb9151b0b232262139fca9429
2018-12-02 12:08:20 -05:00
..
db For queens sync 2018-09-07 16:24:08 -07:00
nfp Disable NFP and servicechain UTs 2018-12-01 13:39:22 -05:00
plugins [AIM] Fix legacy SNAT migration 2018-12-02 12:08:20 -05:00
services [AIM] Fix legacy SNAT migration 2018-12-02 12:08:20 -05:00
__init__.py Pike sync 2018-01-06 19:36:36 -08:00
common.py Newton sync 2017-03-17 01:35:29 -07:00
test_extension_group_policy.py For queens sync 2018-09-07 16:24:08 -07:00
test_extension_group_policy_mapping.py For queens sync 2018-09-07 16:24:08 -07:00
test_extension_servicechain.py For queens sync 2018-09-07 16:24:08 -07:00