neutron/neutron/tests/unit/db
Ihar Hrachyshka 48c5c84ee0 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:30 +00:00
..
metering Spin off context module 2017-03-06 16:25:29 +00:00
quota CountableResource: try count/get functions for all plugins 2017-09-12 16:23:22 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agents_db.py Use flake8-import-order plugin 2017-07-05 03:15:27 +00:00
test_agentschedulers_db.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_allowedaddresspairs_db.py use neutron-lib port security api-def 2017-05-01 11:45:42 -06: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 [RBAC] Fix setting network as not shared 2018-04-23 07:57:01 +00:00
test_dvr_mac_db.py DistributedVirtualRouter mac address to OVO 2017-07-20 17:43:55 +00: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 use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
test_ipam_pluggable_backend.py Remove code to debug auto address allocation error 2017-08-31 14:54:34 +05:30
test_l3_db.py Fixing the filter in get MTU by network list query. 2018-02-16 08:49:03 +00:00
test_l3_dvr_db.py Do not create fip agent port for dvr_no_external node 2017-10-31 00:58:13 +00:00
test_l3_hamode_db.py l3_ha: only pass host into update_port when updating router port bindings 2018-01-17 09:47:11 -08:00
test_migration.py Use get_random_string from neutron-lib 2016-12-18 21:18:05 +02: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 use neutron-lib callbacks 2017-04-26 12:12:53 -06:00
test_rbac_db_mixin.py tests: port test_port_presence_prevents_network_rbac_policy_deletion 2018-06-01 09:48:30 +00:00
test_securitygroups_db.py Only allow SG port ranges for whitelisted protocols 2018-05-11 00:24:34 +02: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 flake8-import-order plugin 2017-07-05 03:15:27 +00:00
test_standard_attr.py Tag mechanism supports resources with standard attribute 2017-07-25 08:14:04 +09:00