neutron/neutron/tests/unit
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
..
agent Merge "Add broadcast to IpAddrCommand.get_devices_with_ip() return value" 2018-03-12 16:45:14 +00:00
api use is_extension_supported from neutron-lib 2018-03-12 09:28:52 -06:00
cmd More efficiently clean up OVS ports 2018-01-22 14:07:42 -06:00
common remove unused common rpc apis 2018-03-09 12:13:48 -07:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions use qos constants from neutron-lib 2017-10-26 19:57:19 +00:00
db use callback payloads for PRECOMMIT_UPDATE events 2018-03-13 11:38:19 -06:00
debug Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
extensions use callback payloads for PRECOMMIT_UPDATE events 2018-03-13 11:38:19 -06:00
hacking Use flake8-import-order plugin 2017-07-05 03:15:27 +00:00
ipam Removed unnecessary setUp calls in tests 2017-07-31 17:16:01 +02:00
notifiers Use port object in notifiers/test_nova.py 2017-10-03 20:59:01 +00:00
objects Merge "Use Router OVO in external_net_db" 2018-03-08 16:07:50 +00:00
plugins use callback payloads for PRECOMMIT_UPDATE events 2018-03-13 11:38:19 -06:00
privileged Switch ip addr add/del/flush commands to use pyroute2 2018-03-09 23:09:25 +01:00
quota CountableResource: try count/get functions for all plugins 2017-09-08 10:50:12 -07:00
scheduler Merge "use l3 api def from neutron-lib" 2017-12-16 13:01:14 +00:00
services use callback payloads for PRECOMMIT_UPDATE events 2018-03-13 11:38:19 -06:00
tests Replaced assertTrue(False) with fail() 2017-06-22 19:31:00 +02:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
dummy_plugin.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06: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
test_policy.py consume neutron-lib resources attr map 2018-03-09 13:37:28 -07:00
test_service.py use callback payloads for _SPAWN events 2017-12-21 11:03:36 -07:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Pass parameters when create eventlet.wsgi server 2017-03-17 14:14:25 +08:00
testlib_api.py API compare-and-swap updates based on revision_number 2017-06-29 22:50:12 +00:00