"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nova/tests/unit/virt/libvirt/test_host.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_host.py  (nova-22.0.0):test_host.py  (nova-22.0.1)
skipping to change at line 1381 skipping to change at line 1381
# Assert the classes we're using currently # Assert the classes we're using currently
# NOTE(mdbooth): We're obviously asserting the wrong classes here # NOTE(mdbooth): We're obviously asserting the wrong classes here
# because we're explicitly asserting the faked versions. This is a # because we're explicitly asserting the faked versions. This is a
# concession to avoid a test dependency on libvirt. # concession to avoid a test dependency on libvirt.
self.assertIn(fakelibvirt.virDomain, proxy_classes) self.assertIn(fakelibvirt.virDomain, proxy_classes)
self.assertIn(fakelibvirt.virConnect, proxy_classes) self.assertIn(fakelibvirt.virConnect, proxy_classes)
self.assertIn(fakelibvirt.virNodeDevice, proxy_classes) self.assertIn(fakelibvirt.virNodeDevice, proxy_classes)
self.assertIn(fakelibvirt.virSecret, proxy_classes) self.assertIn(fakelibvirt.virSecret, proxy_classes)
# Assert that we filtered out libvirtError # Assert that we filtered out libvirtError and any private classes
self.assertNotIn(fakelibvirt.libvirtError, proxy_classes) self.assertNotIn(fakelibvirt.libvirtError, proxy_classes)
self.assertNotIn(fakelibvirt._EventAddHandleFunc, proxy_classes)
def test_tpool_get_connection(self): def test_tpool_get_connection(self):
# Test that Host.get_connection() returns a tpool.Proxy # Test that Host.get_connection() returns a tpool.Proxy
self.assertIsInstance(self.conn, tpool.Proxy) self.assertIsInstance(self.conn, tpool.Proxy)
def test_tpool_instance_lookup(self): def test_tpool_instance_lookup(self):
# Test that domains returns by our libvirt connection are also proxied # Test that domains returns by our libvirt connection are also proxied
dom = self.conn.lookupByUUIDString(uuids.vm1) dom = self.conn.lookupByUUIDString(uuids.vm1)
self.assertIsInstance(dom, tpool.Proxy) self.assertIsInstance(dom, tpool.Proxy)
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

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