The nova.tests.network.test_manager Module

class AllocateTestCase(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_allocate_for_instance()
test_allocate_for_instance_not_enough_macs()
test_allocate_for_instance_with_mac()
class BackdoorPortTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Tests nova.network.manager.get_backdoor_port.

setUp()
test_backdoor_port()
class CommonNetworkTestCase(*args, **kwargs)

Bases: nova.test.TestCase

fake_create_fixed_ips(context, network_id, fixed_cidr=None)
setUp()
test_create_networks()
test_create_networks_cidr_already_used()
test_create_networks_many()
test_deallocate_for_instance_passes_host_info()
test_disassociate_network()
test_disassociate_network_not_found()
test_flatdhcpmanager_dynamic_fixed_range()

Test FlatDHCPManager NAT rules for fixed_range.

test_flatdhcpmanager_static_fixed_range()

Test FlatDHCPManager NAT rules for fixed_range.

test_get_all_networks()
test_get_instance_uuids_by_ip()
test_get_instance_uuids_by_ip_regex()
test_get_instance_uuids_by_ipv6_regex()
test_get_network()
test_get_network_not_found()
test_remove_fixed_ip_from_instance()
test_remove_fixed_ip_from_instance_bad_input()
test_validate_cidrs()
test_validate_cidrs_already_used()
test_validate_cidrs_conflict_existing_supernet()
test_validate_cidrs_one_in_use()
test_validate_cidrs_smaller_subnet_in_use()
test_validate_cidrs_split_all_in_use()
test_validate_cidrs_split_cidr_in_use_middle_of_range()
test_validate_cidrs_split_exact_in_half()
test_validate_cidrs_split_partial()
test_validate_cidrs_split_smaller_cidr_in_use()
test_validate_cidrs_split_smaller_cidr_in_use2()
test_validate_cidrs_too_many()
test_vlanmanager_dynamic_fixed_range()

Test VlanManager NAT rules for fixed_range.

test_vlanmanager_static_fixed_range()

Test VlanManager NAT rules for fixed_range.

class FlatNetworkTestCase(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_add_fixed_ip_instance_using_id_without_vpn()
test_add_fixed_ip_instance_using_uuid_without_vpn()
test_allocate_floating_ip()
test_associate_floating_ip()
test_deallocate_floating_ip()
test_disassociate_floating_ip()
test_get_instance_nw_info()
test_get_networks_by_uuids_ordering()
test_instance_dns()
test_mini_dns_driver()
test_mini_dns_driver_with_mixed_case()
test_validate_networks()
test_validate_networks_empty_fixed_ip()
test_validate_networks_empty_requested_networks()
test_validate_networks_invalid_fixed_ip()
test_validate_networks_none_fixed_ip()
test_validate_networks_none_requested_networks()
test_validate_reserved()
class FloatingIPTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Tests nova.network.manager.FloatingIP.

setUp()
test_associate_client_exceptions()
test_associate_floating_ip_multi_host_calls()
test_deallocate_client_exceptions()
test_deallocation_deleted_instance()
test_deallocation_duplicate_floating_ip()
test_delete_all_by_ip()
test_disassociate_client_exceptions()
test_disassociate_floating_ip_multi_host_calls()
test_double_deallocation()
test_floating_create_and_get()
test_floating_dns_create_conflict()
test_floating_dns_delete()
test_floating_dns_domains_public()
test_get_floating_ip_client_exceptions()
test_mac_conflicts()
test_migrate_instance_finish()
test_migrate_instance_start()
class InstanceDNSTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Tests nova.network.manager instance DNS.

setUp()
test_dns_domains_private()
class LdapDNSTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Tests nova.network.ldapdns.LdapDNS.

setUp()
tearDown()
test_ldap_dns_create_and_get()
test_ldap_dns_create_conflict()
test_ldap_dns_delete()
test_ldap_dns_domains()
class RPCAllocateTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Tests nova.network.manager.RPCAllocateFixedIP.

setUp()
test_rpc_allocate()

Test to verify bug 855030 doesn’t resurface.

Mekes sure _rpc_allocate_fixed_ip returns a value so the call returns properly and the greenpool completes.

class TestFloatingIPManager(network_driver=None, *args, **kwargs)

Bases: nova.network.floating_ips.FloatingIP, nova.network.manager.NetworkManager

Dummy manager that implements FloatingIP.

class TestRPCFixedManager(network_driver=None, *args, **kwargs)

Bases: nova.network.manager.RPCAllocateFixedIP, nova.network.manager.NetworkManager

Dummy manager that implements RPCAllocateFixedIP.

class VlanNetworkTestCase(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_add_fixed_ip_instance_without_vpn_requested_networks()
test_add_floating_ip_nat_before_bind()
test_allocate_fixed_ip()
test_allocate_floating_ip()
test_associate_floating_ip()
test_create_networks_too_big()
test_create_networks_too_many()
test_deallocate_fixed()

Verify that release is called properly.

Ensures https://bugs.launchpad.net/nova/+bug/973442 doesn’t return

test_deallocate_fixed_deleted()
test_deallocate_fixed_no_vif()

Verify that deallocate doesn’t raise when no vif is returned.

Ensures https://bugs.launchpad.net/nova/+bug/968457 doesn’t return

test_deallocate_floating_ip()
test_disassociate_floating_ip()
test_fixed_ip_cleanup_fail()
test_floating_ip_init_host()
test_floating_ip_owned_by_project()
test_get_networks_by_uuids_ordering()
test_ip_association_and_allocation_of_other_project()

Makes sure that we cannot deallocaate or disassociate a public ip of other project

test_validate_networks()
test_validate_networks_empty_fixed_ip()
test_validate_networks_empty_requested_networks()
test_validate_networks_invalid_fixed_ip()
test_validate_networks_none_fixed_ip()
test_validate_networks_none_requested_networks()
test_vpn_allocate_fixed_ip()
test_vpn_allocate_fixed_ip_no_network_id()

Previous topic

The nova.tests.network.test_linux_net Module

Next topic

The nova.tests.network.test_network_info Module

This Page