neutron/neutron/tests/unit/db
Boden R 537bfb9a1c use callback payloads for PRECOMMIT_UPDATE events
This patch switches callbacks over to the payload object style events
[1] for PRECOMMIT_UPDATE based notifications. To do so a DBEventPayload
object is used with the publish() method to pass along the related data.
In addition a few UTs are updated to work with the changes. Finally
a few shims are put into place to allow PRECOMMIT_UPDATE based events to
use payloads while still supporting the existing kwarg style events.

NeutronLibImpact

[1] https://docs.openstack.org/neutron-lib/latest/contributor/callbacks.html#event-payloads

Change-Id: Ie6d27df01cd7b87894efc80946d41eb1ebe25bef
2018-03-13 11:38:19 -06:00
..
metering use metering api def from neutron-lib 2017-11-03 14:03:20 -06:00
quota CountableResource: try count/get functions for all plugins 2017-09-08 10:50:12 -07:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agents_db.py Use Agent OVO in agents_db and test_agents_db 2017-11-03 16:46:09 +07:00
test_agentschedulers_db.py Use Agent OVO in agents_db and test_agents_db 2017-11-03 16:46:09 +07:00
test_allowedaddresspairs_db.py use addr pairs api def from lib 2017-11-13 11:56:32 -07:00
test_api.py Add DBError to _is_nested_instance 2017-02-05 17:42:08 -08:00
test_common_db_mixin.py Spin off context module 2017-03-06 16:25:29 +00: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 Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_dvr_mac_db.py use DVRMacAddressNotFound exception from neutron-lib 2018-02-12 12:45:18 -07:00
test_extraroute_db.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_ipam_backend_mixin.py Switch to use _get_subnet_object() in ipam_backend_mixin module 2017-12-18 14:59:17 +01:00
test_ipam_pluggable_backend.py Revert "Revert "objects: get, update and delete converted to Subnet OVO usage"" 2017-12-01 16:45:50 +07:00
test_l3_db.py Fixing the filter in get MTU by network list query. 2018-02-14 22:21:18 +03:00
test_l3_dvr_db.py use l3 api def from neutron-lib 2017-12-15 07:03:14 -07:00
test_l3_hamode_db.py l3_ha: only pass host into update_port when updating router port bindings 2018-01-16 14:37:32 -08:00
test_migration.py Refactoring db config options 2017-10-04 15:42:50 -04:00
test_portsecurity_db.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_portsecurity_db_common.py use neutron-lib port security api-def 2017-05-01 11:45:42 -06:00
test_provisioning_blocks.py test_provisioning_blocks: Network model to OVO 2017-12-29 14:58:35 +07:00
test_rbac_db_mixin.py Update network external attribute for RBAC change 2017-12-12 01:24:12 +00:00
test_securitygroups_db.py use callback payloads for PRECOMMIT_UPDATE events 2018-03-13 11:38:19 -06:00
test_segments_db.py Change passing session to context in segments db functions 2016-12-23 16:47:41 +04:00
test_sqlalchemytypes.py Use oslo_db.sqlalchemy.test_fixtures 2018-02-19 20:53:14 -05:00
test_standard_attr.py Tag mechanism supports resources with standard attribute 2017-07-25 08:14:04 +09:00