aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/tests/test_utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-04-13 17:23:54 +0000
committerGerrit Code Review <review@openstack.org>2017-04-13 17:23:54 +0000
commit52c59fbb55cba7d9c4b66d2260d27e6c8fa83e9d (patch)
treee3d9a23c0fb1898fe4cb0f6d323c24fbe21f3968 /os_net_config/tests/test_utils.py
parentd12f1615cc006a09a232ecd7e3b75000a1af6d21 (diff)
parentb905e0d803e55deee9620a24de4b87c3429b43ab (diff)
Merge "os_net_config should map nics that are down if nic is in mapping file"
Diffstat (limited to 'os_net_config/tests/test_utils.py')
-rw-r--r--os_net_config/tests/test_utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/os_net_config/tests/test_utils.py b/os_net_config/tests/test_utils.py
index 5a8b6af..dcd6045 100644
--- a/os_net_config/tests/test_utils.py
+++ b/os_net_config/tests/test_utils.py
@@ -84,9 +84,9 @@ class TestUtils(base.TestCase):
tmpdir = tempfile.mkdtemp()
self.stubs.Set(utils, '_SYS_CLASS_NET', tmpdir)
- def test_is_active_nic(interface_name):
+ def test_is_available_nic(interface_name, check_active):
return True
- self.stubs.Set(utils, '_is_active_nic', test_is_active_nic)
+ self.stubs.Set(utils, '_is_available_nic', test_is_available_nic)
for nic in ['a1', 'em1', 'em2', 'eth2', 'z1',
'enp8s0', 'enp10s0', 'enp1s0f0']:
@@ -214,9 +214,9 @@ class TestUtils(base.TestCase):
tmpdir = tempfile.mkdtemp()
self.stubs.Set(utils, '_SYS_CLASS_NET', tmpdir)
- def test_is_active_nic(interface_name):
+ def test_is_available_nic(interface_name, check_active):
return True
- self.stubs.Set(utils, '_is_active_nic', test_is_active_nic)
+ self.stubs.Set(utils, '_is_available_nic', test_is_available_nic)
for nic in ['a1', 'em1', 'em2', 'eth2', 'z1',
'enp8s0', 'enp10s0', 'enp1s0f0']: