neutron/neutron/tests/unit
Slawek Kaplonski 0396912208 Fix handling of network:shared field in policy module
Some policy rules e.g. for create_port are using rule "network:shared"
in which "shared" field is related to network resource instead of
port directly.
Because of that, "shared" was missing from "target" in policy
enforce module thus validation wasn't working properly for such rule.

This patch fixes it by adding to FieldCheck checker possibility to
get network object and use its "shared" field to validate policy.

Change-Id: I56c99883fce40c37a5ee26e6e661c0cc0783c42f
Closes-Bug: #1808112
2019-05-07 11:31:25 +02:00
..
agent Merge "Use '-p ip' instead of '-p 0' with conntrack" 2019-04-12 13:02:24 +00:00
api use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
cmd Add check for external_network_bridge in neutron-status 2019-03-22 13:14:24 +00:00
common remove neutron.common.constants 2019-04-04 14:10:26 -06:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
db Merge "remove neutron.common.constants" 2019-04-11 18:33:05 +00:00
debug Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
extensions use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
hacking remove string use of neutron.common.rpc 2019-02-08 09:40:39 -07:00
ipam remove neutron.common.constants 2019-04-04 14:10:26 -06:00
notifiers Fix misuse of assertTrue/assertFalse 2019-03-14 09:16:10 +09:00
objects remove neutron.common.constants 2019-04-04 14:10:26 -06:00
pecan_wsgi Removing deprecated module neutron.api.versions 2018-03-28 14:15:50 +07:00
plugins Merge "remove neutron.common.constants" 2019-04-11 18:33:05 +00:00
privileged remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
quota use get reader/writer session from neutron-lib 2018-07-06 14:43:31 -06:00
scheduler use api def ALIAS in supported_extension_aliases 2019-04-08 08:30:20 -06:00
services Merge "remove neutron.common.constants" 2019-04-11 18:33:05 +00:00
tests Increase timeouts for OVSDB in functional tests 2019-03-22 09:57:16 +00:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py Add dependency for service plugin 2019-02-16 00:17:53 +08: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 Avoid loading same service plugin more than once 2019-02-21 11:17:02 +01: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 Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Fix handling of network:shared field in policy module 2019-05-07 11:31:25 +02:00
test_service.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
testlib_api.py use context manager from neutron-lib 2018-10-24 07:18:46 -06:00