group-based-policy/gbpservice/neutron/tests/unit/services/grouppolicy
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
..
drivers Cleanup schema loading so unit tests run consistently 2017-12-08 13:45:16 -05:00
extensions Ocata sync 2017-07-05 15:25:25 -07:00
__init__.py Renaming gbp package to gbpservice 2014-12-31 19:13:19 -08:00
test_aim_mapping_driver.py Conditionally add nested-host-vlan 2018-07-25 23:07:10 -07:00
test_aim_validation.py [AIM] Fix legacy SNAT migration 2018-12-02 12:08:20 -05:00
test_apic_allowed_vm_name.py Stopping the use of deprecated get_session() 2018-01-11 16:26:03 -08:00
test_apic_segmentation_label.py Stopping the use of deprecated get_session() 2018-01-11 16:26:03 -08:00
test_extension_driver_api.py Add support for VLAN aware VMs in AIM 2018-01-26 21:56:07 +00:00
test_group_proxy_extension.py Preparing for Pike support 2 (neutron_lib context) 2017-12-11 22:38:05 -08:00
test_grouppolicy_plugin.py Add support for VLAN aware VMs in AIM 2018-01-26 21:56:07 +00:00
test_implicit_policy.py Cleanup schema loading so unit tests run consistently 2017-12-08 13:45:16 -05:00
test_neutron_resources_driver.py For queens sync 2018-09-07 16:24:08 -07:00
test_neutronv2_api.py Newton sync 2017-03-17 01:35:29 -07:00
test_neutronv2_client.py Preparing for Pike support 2 (neutron_lib context) 2017-12-11 22:38:05 -08:00
test_nsx_policy_mapping_driver.py NSX policy: Integration with new backend version 2018-04-24 16:22:04 -07:00
test_resource_mapping.py For queens sync 2018-09-07 16:24:08 -07:00
test_resource_mapping_proxy_group.py Propagate relevant driver exceptions to client 2016-10-31 10:57:11 -07:00