neutron/neutron/tests/unit
Kevin Benton 0f536d5a25 Use objects instead of SQLA deep copies in PortContext
The workaround of using deepcopy calls on the PortBinding
and PortBindingLevel objects prevents the port relationship
from being loaded to bump its revision because it then fails
to merge.

So in order to allow port bindings to bump the revision we
need to stop using sqlalchemy objects in the PortContext. This
patch adds a new snapshot object that just copies the column
values and provides a method to reconcile them back into the
session.

This workaround can go away after we switch to using OVOs, but
this needs to be backportable so we can't just wait for OVO
adoption.

Partial-Bug: #1699034
Change-Id: Ib85ec8182117fa3c4844dabfffe881e38e68b556
2017-06-20 01:34:10 -07:00
..
agent Merge "DHCP Agent: Separate local from non-local subnets" 2017-06-20 06:52:27 +00:00
api Merge "DHCP RPC: Separate local from non-local subnets" 2017-06-20 06:37:12 +00:00
cmd Merge "Update to support the ovdsbapp 0.4.0 API" 2017-05-18 03:43:29 +00:00
common Merge "Fixes import_modules_recursively for Windows" 2017-06-19 13:56:28 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Add "default" behaviour to QoS policies 2017-05-26 23:31:36 +00:00
db Pass the complete info in sg/rules db into PRECOMMIT_XXX callback 2017-06-16 16:32:46 -07:00
debug use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
extensions Store segmentation_id during segment create 2017-06-18 17:47:00 -05:00
hacking Switch to neutron-lib hacking factory 2017-04-13 07:41:25 -07:00
ipam New enginefacade for networks, subnets. 2017-03-30 01:26:45 -07:00
notifiers Send port ID in network-changed event to Nova 2017-05-17 22:18:54 -04:00
objects OVO: Allow port queries based on security_group_ids 2017-06-20 08:33:22 +00:00
plugins Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
quota TestTrackedResource: register core plugin in directory 2017-03-30 18:05:33 +00:00
scheduler Merge "[OVO] Integration of RouterL3AgentBinding" 2017-05-27 05:04:19 +00:00
services use neutron-lib's callback fixture 2017-06-14 06:50:29 -06:00
tests Remove deprecated eventlet TimeoutError exception 2017-05-05 16:49:58 +07: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 neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
dummy_plugin.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
test_manager.py neutron-lib: use CORE from neutron lib constants 2016-12-26 00:56:42 -08:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Merge "Neutron server was not compatible with member actions" 2017-04-21 06:28:39 +00:00
test_service.py service: add callback AFTER_SPAWN 2017-05-08 09:00:11 -04: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 Fix SQL fixture to preserve engine facade settings 2017-04-06 09:36:07 +00:00