neutron/neutron/tests/unit
Ihar Hrachyshka 9f72d8387e tests: port test_port_presence_prevents_network_rbac_policy_deletion
The test was originally implemented in this form as a tempest api test
case, but there is a problem with it being part of tempest suite,
because the suite should be safe to execute on a running cloud and
shouldn't affect other tenants. But sharing a network with everyone (*)
briefly impacts other tenants because they see a new shared network
popping up for a second in their net-list. It is also an issue because
if we are unlucky enough, some other tenant may start an instance
without specifying a particular port or network to use, in which case
there is a chance that nova allocates a port in this shared network and
attach it to the instance. When the rbac test case then tries to delete
the policy and the network, it fails because it's still in use.

The solution is to stop testing this scenario in tempest suite, instead
moving it into unit test suite.

A follow-up patch in neutron-tempest-plugin will clean up the bad test
case.

Change-Id: I199f639c95e8ae884ede46404370d7b64da3b309
Needed-By: Iba89a53b2715cf3a9c7485f2089f27d547fea308
Related-Bug: #1753209
(cherry picked from commit 6c772de103)
2018-06-01 09:48:59 +00:00
..
agent Pass parameters when create eventlet.wsgi server 2018-02-02 19:11:17 +00:00
api Stop making IP-specific provider rules in SG code 2017-04-13 19:54:02 +00:00
callbacks Reduce the number of debug traces emitted by registry callbacks 2016-09-07 20:10:16 -07:00
cmd More efficiently clean up OVS ports 2018-01-29 08:15:55 -06:00
common Fixes import_modules_recursively for Windows 2017-08-25 18:05:39 +00:00
core_extensions Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
db tests: port test_port_presence_prevents_network_rbac_policy_deletion 2018-06-01 09:48:59 +00:00
debug Change external_network_bridge default to '' 2016-08-02 11:35:47 -07:00
extensions Always pass device_owner to _ipam_get_subnets() 2018-02-17 18:32:21 +00:00
hacking Merge "Replace assertEqual(None, *) with assertIsNone in tests" 2016-11-22 02:15:19 +00:00
ipam OVO for Ipam(Allocation,Subnet,Pool) 2017-01-19 19:25:01 +00:00
notifiers Turn nova notifier into a proper rate limiter 2017-03-20 20:48:58 +00:00
objects Support protocol numbers in security group API 2018-01-10 09:29:23 +01:00
plugins ml2: fix update_device_up to send lm events with linux bridge 2018-04-16 14:12:10 +01:00
quota Stop using legacy facade 2017-01-19 13:02:33 +04:00
scheduler Avoid redundant HA port creation during migration 2017-09-11 19:57:01 +00:00
services Don't create new QoS policy during update operation 2017-11-27 20:21:29 +00: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 Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
test_auth.py Fix params order in assertEqual 2016-01-13 18:24:04 +05:30
test_context.py Stop using legacy facade 2017-01-19 13:02:33 +04: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 Neutron server was not compatible with member actions 2017-06-19 10:32:48 +02: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 Pass parameters when create eventlet.wsgi server 2018-02-02 19:11:17 +00:00
testlib_api.py Merge "Stop using legacy facade" 2017-01-20 08:23:22 +00:00