The nova.tests.network.test_quantumv2 Module

class MyComparator(lhs)

Bases: mox.Comparator

equals(rhs)
class TestQuantumClient(*args, **kwargs)

Bases: nova.test.TestCase

test_withouttoken_keystone_connection_error()
test_withouttoken_keystone_not_auth()
test_withtoken()
class TestQuantumv2(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
tearDown()
test_add_fixed_ip_to_instance()
test_allocate_floating_ip()
test_allocate_floating_ip_with_default_pool()
test_allocate_floating_ip_with_pool_id()
test_allocate_for_instance_1()
test_allocate_for_instance_2()
test_allocate_for_instance_accepts_macs_kwargs_None()
test_allocate_for_instance_accepts_macs_kwargs_set()
test_allocate_for_instance_accepts_only_portid()
test_allocate_for_instance_ex1()

verify we will delete created ports if we fail to allocate all net resources.

Mox to raise exception when creating a second port. In this case, the code should delete the first created port.

test_allocate_for_instance_ex2()

verify we have no port to delete if we fail to allocate the first net resource.

Mox to raise exception when creating the first port. In this case, the code should not delete any ports.

test_allocate_for_instance_mac_conflicting_requested_port()
test_allocate_for_instance_no_networks()

verify the exception thrown when there are no networks defined.

test_allocate_for_instance_no_port_or_network()
test_allocate_for_instance_not_enough_macs()
test_allocate_for_instance_not_enough_macs_via_ports()
test_allocate_for_instance_second_time()
test_allocate_for_instance_two_macs_two_networks()
test_allocate_for_instance_with_requested_networks()
test_allocate_for_instance_with_requested_networks_with_fixedip()
test_allocate_for_instance_with_requested_networks_with_port()
test_associate_floating_ip()
test_associate_floating_ip_not_found_fixed_ip()
test_deallocate_for_instance_1()
test_deallocate_for_instance_2()
test_deallocate_port_for_instance_1()
test_deallocate_port_for_instance_2()
test_disassociate_floating_ip()
test_get_all_empty_list_networks()
test_get_available_networks_all_private()
test_get_available_networks_all_public()
test_get_available_networks_private_and_public()
test_get_available_networks_with_network_ids()
test_get_fixed_ip_by_address_fails_for_more_than_1_port()
test_get_fixed_ip_by_address_fails_for_no_ports()
test_get_fixed_ip_by_address_succeeds_for_1_port()
test_get_floating_ip_associated()
test_get_floating_ip_by_address()
test_get_floating_ip_by_address_associated()
test_get_floating_ip_by_address_multiple_found()
test_get_floating_ip_by_address_not_found()
test_get_floating_ip_pools()
test_get_floating_ip_unassociated()
test_get_floating_ips_by_project()
test_get_instance_id_by_floating_address()
test_get_instance_id_by_floating_address_associated()
test_get_instance_nw_info_1()
test_get_instance_nw_info_2()
test_get_instance_nw_info_with_nets()
test_get_instance_nw_info_without_subnet()
test_get_instance_uuids_by_ip_filter()
test_list_floating_ips_without_l3_support()
test_list_ports()
test_populate_quantum_extension_values_rxtx_factor()
test_refresh_quantum_extensions_cache()
test_release_floating_ip()
test_release_floating_ip_associated()
test_remove_fixed_ip_from_instance()
test_show_port()
test_validate_networks()
test_validate_networks_duplicate()

Verify that the correct exception is thrown when duplicate network ids are passed to validate_networks.

test_validate_networks_ex_1()
test_validate_networks_ex_2()
class TestQuantumv2ModuleMethods(*args, **kwargs)

Bases: nova.test.TestCase

test_ensure_requested_network_ordering_no_preference_hashes()
test_ensure_requested_network_ordering_no_preference_ids()
test_ensure_requested_network_ordering_with_preference()

Previous topic

The nova.tests.network.test_network_info Module

Next topic

The nova.tests.network.test_rpcapi Module

This Page