neutron/neutron/tests/unit
Kevin Benton 9e006cbe64 Capture NotFound Exceptions in subnet postcommit
Change I28323eddcf34fd12002cc706f4a9bcbb3f976ceb introduced
a subtle difference in the types of exceptions that can be
encountered during the operations after creating a subnet.

Before that change, a giant enclosing transaction would provide
REPEATABLE READ guarantees, so once a port was looked up by
IPAM, calling update_port on that port afterwards in the same
transaction would not result in a PortNotFound exception.
The same applied to looking up a router and then updating its
gateway port.

Now that there is no giant enclosing transaction, we have to
capture the possible PortNotFound and RouterNotFound exceptions
that can occur during these post commit subnet create operations.

Closes-Bug: #1644502
Change-Id: I29e2bf7bcda37ebbcee193f94c8b03df90f24ef1
2016-11-24 04:46:22 -08:00
..
agent Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
api Remove REVERSED_PLURALS and get_resource_info() 2016-11-23 11:11:12 -05:00
callbacks Reduce the number of debug traces emitted by registry callbacks 2016-09-07 20:10:16 -07:00
cmd Fix check_asserttruefalse syntax validator 2016-08-11 13:49:47 +00:00
common Merge "ipv6_utils: delete get_ipv6_addr_by_EUI64" 2016-11-07 23:51:05 +00:00
core_extensions Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
db Capture NotFound Exceptions in subnet postcommit 2016-11-24 04:46:22 -08:00
debug Change external_network_bridge default to '' 2016-08-02 11:35:47 -07:00
extensions Capture NotFound Exceptions in subnet postcommit 2016-11-24 04:46:22 -08:00
hacking Merge "Replace assertEqual(None, *) with assertIsNone in tests" 2016-11-22 02:15:19 +00:00
ipam Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
notifiers Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
objects Merge "Adopt neutron-lib plugin directory" 2016-11-23 15:43:08 +00:00
plugins Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
quota Merge "Except if tracked resource registered as countable" 2016-09-08 07:04:25 +00:00
scheduler Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
services Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
tests Remove recursion from import_modules_recursively 2016-09-30 21:48:50 +00:00
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
_test_extension_portbindings.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
dummy_plugin.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
extension_stubs.py Add a description field to all standard resources 2016-03-05 02:29:35 +00:00
test_auth.py Fix params order in assertEqual 2016-01-13 18:24:04 +05:30
test_context.py Support Unicode request_id on Python 3 2015-11-27 16:21:16 +01:00
test_manager.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
test_service.py Fix that api_workers=0 doesn't spawn any api workers 2016-07-29 05:40:05 -04:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Get rid of get_engine() in db/api.py 2016-08-12 15:48:17 +03:00
testlib_api.py Switch to neutron-lib for model_base 2016-08-31 11:12:18 -04:00