This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.1 docs or all OpenStack docs too.

The nova.tests.test_virt Module

class nova.tests.test_virt.CacheConcurrencyTestCase(methodName='runTest')

Bases: nova.test.TestCase

setUp()
test_different_fname_concurrency()

Ensures that two different fname caches are concurrent

test_same_fname_concurrency()

Ensures that the same fname cache runs at a sequentially

class nova.tests.test_virt.IptablesFirewallTestCase(methodName='runTest')

Bases: nova.test.TestCase

setUp()
tearDown()
test_static_filters()
class nova.tests.test_virt.LibvirtConnTestCase(methodName='runTest')

Bases: nova.test.TestCase

create_fake_libvirt_mock(**kwargs)

Defining mocks for LibvirtConnection(libvirt is not used).

create_service(**kwargs)
lazy_load_library_exists()

check if libvirt is available.

setUp()
tearDown()
test_ensure_filtering_rules_for_instance_timeout()

ensure_filtering_fules_for_instance() finishes with timeout.

test_live_migration_raises_exception()

Confirms recover method is called when exceptions are raised.

test_lxc_container_and_uri()
test_update_available_resource_works_correctly()

Confirm compute_node table is updated successfully.

test_update_resource_info_no_compute_record_found()

Raise exception if no recorde found on services table.

test_xml_and_uri()
test_xml_and_uri_no_kernel()
test_xml_and_uri_no_ramdisk()
test_xml_and_uri_no_ramdisk_no_kernel()
test_xml_and_uri_rescue()
class nova.tests.test_virt.NWFilterTestCase(methodName='runTest')

Bases: nova.test.TestCase

setUp()
setup_and_return_security_group()
tearDown()
teardown_security_group()
test_cidr_rule_nwfilter_xml()
test_creates_base_rule_first()