vmware-nsx/neutron/tests/unit
Miguel Angel Ajo 95b62b9491 Fix IpNetnsCommand to execute without root_wrapper when no netns
IpNetnsCommand accept execution with a network namespace, and
that requires root privileges and a root_wrapper.
IpNetnsCommand does accept no namespace too, in that case, the
root_wrapper doesn't have to be present necessarily, unless the
command we're executing requires root privileges itself.

This patch fixes the check condition on IpNetnsCommand execute
method.

Change-Id: I5ab2f3f1daf4a5a080611dbcd3dbd43292f6766a
Closes-Bug: #1358196
2014-08-25 21:21:21 +02:00
..
agent Merge "Fix duplicate function: test_getattr_unallowed_attr" 2014-08-15 07:09:30 +00:00
api Do not schedule network when creating reserved DHCP port 2014-07-30 07:42:20 +09:00
bigswitch Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
brocade Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
cisco Merge "Cisco N1kv plugin to send subtype on network profile creation" 2014-08-18 01:28:04 +00:00
db Merge "Do not assume order of new_peers list elements" 2014-08-17 19:50:43 +00:00
embrane Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
extensions Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
hyperv Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00
ibm Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00
linuxbridge Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00
metaplugin Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
midonet Implement Midonet Juno Network Api calls 2014-07-31 15:51:10 +09:00
ml2 Merge "ML2 Type driver refactor part 1" 2014-08-25 03:33:53 +00:00
mlnx Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00
nec Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00
notifiers Replace loopingcall in notifier with a delayed send 2014-04-22 16:22:02 +00:00
nuage Implements securitygroup extension for nuage plugin 2014-08-19 21:23:29 -07:00
ofagent Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00
oneconvergence Merge "Raise proper exception in case duplicate ipv6 address is allocated" 2014-08-25 18:26:11 +00:00
opencontrail Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
openvswitch Merge "Refresh rpc_backend values in unit tests to those from oslo.messaging" 2014-08-25 10:16:16 +00:00
plumgrid Security groups extension for PLUMgrid plugin 2014-07-13 23:48:27 -07:00
ryu Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
services Merge "A10 Networks LBaaS v1 Driver" 2014-08-21 21:32:12 +00:00
sriovnicagent Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00
vmware Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
_test_extension_portbindings.py Return 403 instead of 404 on attr policy failures 2014-08-06 07:40:39 -07:00
_test_rootwrap_exec.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
database_stubs.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
dummy_plugin.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
extension_stubs.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_agent_config.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_agent_ext_plugin.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_agent_linux_utils.py Make linux.utils.execute log error on return codes 2014-05-28 18:49:53 -07:00
test_agent_netns_cleanup.py Call config_parse in base test setup 2014-07-27 13:31:12 -07:00
test_agent_ovs_cleanup.py Call config_parse in base test setup 2014-07-27 13:31:12 -07:00
test_agent_rpc.py Remove redundant topic from rpc calls 2014-08-05 10:14:20 +00:00
test_api_api_common.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_api_v2_extension.py tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09:00
test_api_v2_resource.py Send HTTP exceptions in the format expected by neutronclient 2014-08-18 17:21:45 +04:00
test_api_v2.py Merge "Predictable field and filter ordering" 2014-08-14 13:52:40 +00:00
test_attributes.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_auth.py add auth token to context 2014-08-12 11:17:21 +09:00
test_common_log.py Use method's logger in log decorator 2014-07-15 11:08:33 +02:00
test_common_utils.py Common decorator for caching methods 2014-05-22 13:17:51 +02:00
test_config.py Call config_parse in base test setup 2014-07-27 13:31:12 -07:00
test_db_migration.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_db_plugin_level.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
test_db_plugin.py Raise proper exception in case duplicate ipv6 address is allocated 2014-08-25 16:27:44 +04:00
test_db_rpc_base.py Switch to using of oslo.db 2014-06-30 14:07:59 +03:00
test_debug_commands.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_dhcp_agent.py Call config_parse in base test setup 2014-07-27 13:31:12 -07:00
test_dhcp_scheduler.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
test_extension_allowedaddresspairs.py no quota for allowed address pair 2014-07-17 23:06:10 +08:00
test_extension_ext_gw_mode.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
test_extension_ext_net.py Return 403 instead of 404 on attr policy failures 2014-08-06 07:40:39 -07:00
test_extension_extended_attribute.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_extension_extradhcpopts.py extra_dhcp_opt add checks for empty strings 2013-12-13 08:40:28 -07:00
test_extension_extraroute.py Change all occurences of no_delete to do_delete 2014-07-13 14:09:26 +03:00
test_extension_firewall.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_extension_pnet.py Fix to throw correct error code for bad attribute 2014-08-08 10:30:23 +05:30
test_extension_portsecurity.py Return 403 instead of 404 on attr policy failures 2014-08-06 07:40:39 -07:00
test_extension_security_group.py Change all occurences of no_delete to do_delete 2014-07-13 14:09:26 +03:00
test_extensions.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_hacking.py Use jsonutils instead of stdlib json 2014-08-14 12:45:58 +02:00
test_iptables_firewall.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_iptables_manager.py Ensure ip6tables are used only if ipv6 is enabled in kernel 2014-08-19 15:12:18 +02:00
test_ipv6.py Ensure ip6tables are used only if ipv6 is enabled in kernel 2014-08-19 15:12:18 +02:00
test_l3_agent.py Merge "Skip FWaaS config mismatch check if RPC method is unsupported" 2014-08-19 08:12:42 +00:00
test_l3_plugin.py Merge "NSX: Avoid floating IP status reset" 2014-08-22 07:13:56 +00:00
test_l3_schedulers.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
test_linux_daemon.py Make pid file locking non-blocking 2014-05-21 13:29:01 -07:00
test_linux_dhcp.py Merge "Support Stateful and Stateless DHCPv6 by dnsmasq" 2014-08-23 17:24:24 +00:00
test_linux_external_process.py Support Router Advertisement Daemon (radvd) for IPv6 2014-07-20 22:32:19 -04:00
test_linux_interface.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_linux_ip_lib.py Fix IpNetnsCommand to execute without root_wrapper when no netns 2014-08-25 21:21:21 +02:00
test_metadata_agent.py Fix 404 error fetching metadata when using DVR 2014-08-12 12:26:31 -07:00
test_metadata_namespace_proxy.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_neutron_context.py add auth token to context 2014-08-12 11:17:21 +09:00
test_neutron_manager.py Fix isinstance assertions 2014-07-02 12:25:00 +02:00
test_policy.py Use jsonutils instead of stdlib json 2014-08-14 12:45:58 +02:00
test_post_mortem_debug.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_provider_configuration.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_quota_ext.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
test_routerserviceinsertion.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
test_security_groups_rpc.py Ensure ip6tables are used only if ipv6 is enabled in kernel 2014-08-19 15:12:18 +02:00
test_servicetype.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
test_wsgi.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
testlib_api.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00