"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nova/tests/unit/virt/libvirt/test_designer.py" between
nova-22.0.0.tar.gz and nova-22.0.1.tar.gz

About: OpenStack Nova (Core Service: Compute) manages the lifecycle of compute instances in an OpenStack environment. Responsibilities include spawning, scheduling and decomissioning of machines on demand.
The "Victoria" series (latest release).

test_designer.py  (nova-22.0.0):test_designer.py  (nova-22.0.1)
skipping to change at line 209 skipping to change at line 209
conf = config.LibvirtConfigGuestInterface() conf = config.LibvirtConfigGuestInterface()
designer.set_vif_host_backend_vhostuser_config(conf, 'fake-mode', designer.set_vif_host_backend_vhostuser_config(conf, 'fake-mode',
'fake-path', 512, None) 'fake-path', 512, None)
self.assertEqual('vhostuser', conf.net_type) self.assertEqual('vhostuser', conf.net_type)
self.assertEqual('unix', conf.vhostuser_type) self.assertEqual('unix', conf.vhostuser_type)
self.assertEqual('fake-mode', conf.vhostuser_mode) self.assertEqual('fake-mode', conf.vhostuser_mode)
self.assertEqual('fake-path', conf.vhostuser_path) self.assertEqual('fake-path', conf.vhostuser_path)
self.assertEqual(512, conf.vhost_rx_queue_size) self.assertEqual(512, conf.vhost_rx_queue_size)
self.assertIsNone(conf.vhost_tx_queue_size) self.assertIsNone(conf.vhost_tx_queue_size)
def test_set_vif_host_backend_vhostuser_config_tapname(self):
conf = config.LibvirtConfigGuestInterface()
designer.set_vif_host_backend_vhostuser_config(conf, 'fake-mode',
'fake-path', None, None,
'fake-tap')
self.assertEqual('vhostuser', conf.net_type)
self.assertEqual('unix', conf.vhostuser_type)
self.assertEqual('fake-mode', conf.vhostuser_mode)
self.assertEqual('fake-path', conf.vhostuser_path)
self.assertIsNone(conf.vhost_rx_queue_size)
self.assertIsNone(conf.vhost_tx_queue_size)
self.assertEqual('fake-tap', conf.target_dev)
def test_set_vif_mtu_config(self): def test_set_vif_mtu_config(self):
conf = config.LibvirtConfigGuestInterface() conf = config.LibvirtConfigGuestInterface()
designer.set_vif_mtu_config(conf, 9000) designer.set_vif_mtu_config(conf, 9000)
self.assertEqual(9000, conf.mtu) self.assertEqual(9000, conf.mtu)
def test_set_driver_iommu_for_sev(self): def test_set_driver_iommu_for_sev(self):
conf = fake_libvirt_data.fake_kvm_guest() conf = fake_libvirt_data.fake_kvm_guest()
# obj.devices[11] # obj.devices[11]
controller = config.LibvirtConfigGuestController() controller = config.LibvirtConfigGuestController()
 End of changes. 1 change blocks. 
0 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)