diff options
author | Michael Still <mikal@stillhq.com> | 2018-12-05 09:05:52 +1100 |
---|---|---|
committer | Michael Still <mikal@stillhq.com> | 2019-02-08 00:23:06 +0000 |
commit | 65bb4263aa33c537d9560b6523511e7abe27e319 (patch) | |
tree | 8695f9267e01df5ac3e712409a8175fa0267f09c /nova/tests/unit/privsep | |
parent | 7b9bc3902495f78f5c0db42f58bfdf0b11c4cfdd (diff) | |
download | nova-65bb4263aa33c537d9560b6523511e7abe27e319.tar.gz |
create_veth_pair is unused, remove it.
Change-Id: Ia616ed1e1eddd9ba4847db1c448cac2973cdc12e
Diffstat (limited to 'nova/tests/unit/privsep')
-rw-r--r-- | nova/tests/unit/privsep/test_linux_net.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/nova/tests/unit/privsep/test_linux_net.py b/nova/tests/unit/privsep/test_linux_net.py index 2c3beaacc1..dbfcddb654 100644 --- a/nova/tests/unit/privsep/test_linux_net.py +++ b/nova/tests/unit/privsep/test_linux_net.py @@ -22,24 +22,6 @@ from nova import test class LinuxNetTestCase(test.NoDBTestCase): """Test networking helpers.""" - def _create_veth_pair(self, calls): - with mock.patch('oslo_concurrency.processutils.execute', - return_value=('', '')) as ex: - nova.privsep.linux_net._create_veth_pair_inner( - 'fake-dev1', 'fake-dev2') - ex.assert_has_calls(calls) - - def test_create_veth_pair(self): - calls = [ - mock.call('ip', 'link', 'add', 'fake-dev1', 'type', 'veth', - 'peer', 'name', 'fake-dev2'), - mock.call('ip', 'link', 'set', 'fake-dev1', 'up'), - mock.call('ip', 'link', 'set', 'fake-dev1', 'promisc', 'on'), - mock.call('ip', 'link', 'set', 'fake-dev2', 'up'), - mock.call('ip', 'link', 'set', 'fake-dev2', 'promisc', 'on') - ] - self._create_veth_pair(calls) - @mock.patch('oslo_concurrency.processutils.execute', return_value=('', '')) def test_set_device_mtu_default(self, mock_exec): |