neutron-fwaas/neutron_fwaas/tests
Akihiro Motoki 55874d06b1 Change netns tests with oslo.privsep to check netns links
It turns out that pyroute2.netns.setns() changes a network
namespace of a thread instead of that of a process when it is
called in a thread [1].

What we actually would like to check in test_in_namespace test
is whether operations against a network namespace work with
oslo.privsep expectedly. There is no need to check namespace inode.

This commit changes test_in_namespace test to check a list of
network devices in a namespace to check netns operation works
correctly. What the new test does are:
- create a network namespace for testing
- create a veth pair and move one of them to the network namespace
- call oslo.privsep entrypoint function to retrieve a list of
  network devices inside the netns

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-January/001761.html

Closes-Bug: #1811506
Change-Id: Ie5b238f1df707ea3ce50b5711ff791bac2681a2f
2019-01-24 00:13:56 +09:00
..
contrib Add functional test for FWaaS L3 logging driver 2018-09-25 13:51:53 +07:00
etc/neutron/policy.d tests: don't rely on configuration files outside tests directory 2018-03-23 17:43:33 +09:00
fullstack remove external_network_bridge option 2018-09-24 20:42:49 +00:00
functional Change netns tests with oslo.privsep to check netns links 2019-01-24 00:13:56 +09:00
tempest_plugin Switch to tempest.common.utils.requires_ext 2018-11-29 02:25:24 +00:00
unit Merge "Move port validation support into the driver" 2018-11-30 17:43:14 +00:00
__init__.py After the services split, get neutron-fwaas Jenkins jobs passing 2014-12-09 00:00:29 -07:00
base.py Fix pep8 new warnings 2018-04-11 19:49:28 +09:00