summaryrefslogtreecommitdiff
path: root/nova/tests/unit/virt/libvirt/test_designer.py
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2020-05-26 16:41:35 +0100
committerStephen Finucane <stephenfin@redhat.com>2020-06-02 15:10:14 +0100
commitd84446bdd8019e32a452f340f037a93388f2433b (patch)
tree8e7cc74e3c05021e2ec5fe7d41c84ebd299ed327 /nova/tests/unit/virt/libvirt/test_designer.py
parentde800535b67cb6a2117bdcfb21e99f4ec5474414 (diff)
downloadnova-d84446bdd8019e32a452f340f037a93388f2433b.tar.gz
libvirt: Remove MIN_LIBVIRT_ETHERNET_SCRIPT_PATH_NONE
Our MIN_LIBVIRT_VERSION is now greater than this. Change-Id: I75a30bf9d7d7e7e33876539639d70c0cb3c1c37f Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'nova/tests/unit/virt/libvirt/test_designer.py')
-rw-r--r--nova/tests/unit/virt/libvirt/test_designer.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/nova/tests/unit/virt/libvirt/test_designer.py b/nova/tests/unit/virt/libvirt/test_designer.py
index c556cf9817..bb5b8e9f72 100644
--- a/nova/tests/unit/virt/libvirt/test_designer.py
+++ b/nova/tests/unit/virt/libvirt/test_designer.py
@@ -20,7 +20,6 @@ from nova.tests.unit import matchers
from nova.tests.unit.virt.libvirt import fake_libvirt_data
from nova.virt.libvirt import config
from nova.virt.libvirt import designer
-from nova.virt.libvirt import host
class DesignerTestCase(test.NoDBTestCase):
@@ -61,24 +60,11 @@ class DesignerTestCase(test.NoDBTestCase):
def test_set_vif_host_backend_ethernet_config_libvirt_1_3_3(self):
conf = config.LibvirtConfigGuestInterface()
- mock_host = mock.Mock(autospec=host.Host)
- mock_host.has_min_version.return_value = True
- designer.set_vif_host_backend_ethernet_config(
- conf, 'fake-tap', mock_host)
+ designer.set_vif_host_backend_ethernet_config(conf, 'fake-tap')
self.assertEqual('ethernet', conf.net_type)
self.assertEqual('fake-tap', conf.target_dev)
self.assertIsNone(conf.script)
- def test_set_vif_host_backend_ethernet_config_libvirt_pre_1_3_3(self):
- conf = config.LibvirtConfigGuestInterface()
- mock_host = mock.Mock(autospec=host.Host)
- mock_host.has_min_version.return_value = False
- designer.set_vif_host_backend_ethernet_config(
- conf, 'fake-tap', mock_host)
- self.assertEqual('ethernet', conf.net_type)
- self.assertEqual('fake-tap', conf.target_dev)
- self.assertEqual('', conf.script)
-
def test_set_vif_host_backend_802qbg_config(self):
conf = config.LibvirtConfigGuestInterface()
designer.set_vif_host_backend_802qbg_config(conf, 'fake-devname',