The nova.tests.network.test_manager Module

class AllocateTestCase(methodName='runTest')

Bases: nova.test.TestCase

test_allocate_for_instance()
class CommonNetworkTestCase(methodName='runTest')

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_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()
class FlatNetworkTestCase(methodName='runTest')

Bases: nova.test.TestCase

setUp()
tearDown()
test_add_fixed_ip_instance_using_id_without_vpn()
test_add_fixed_ip_instance_using_uuid_without_vpn()
test_get_instance_nw_info()
test_instance_dns()
test_mini_dns_driver()
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(methodName='runTest')

Bases: nova.test.TestCase

Tests nova.network.manager.FloatingIP

setUp()
tearDown()
test_deallocation_deleted_instance()
test_deallocation_duplicate_floating_ip()
test_delete_all_by_ip()
test_double_deallocation()
test_floating_create_and_get()
test_floating_dns_create_conflict()
test_floating_dns_delete()
test_floating_dns_domains_public()
class InstanceDNSTestCase(methodName='runTest')

Bases: nova.test.TestCase

Tests nova.network.manager instance DNS

setUp()
tearDown()
test_dns_domains_private()
class LdapDNSTestCase(methodName='runTest')

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 NetworkPolicyTestCase(methodName='runTest')

Bases: nova.test.TestCase

setUp()
tearDown()
test_check_policy()
class RPCAllocateTestCase(methodName='runTest')

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.manager.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(methodName='runTest')

Bases: nova.test.TestCase

setUp()
test_add_fixed_ip_instance_without_vpn_requested_networks()
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()

Verify doesn’t deallocate deleted fixed_ip from deleted network

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()

Verify IP is not deallocated if the security group refresh fails.

test_floating_ip_init_host()
test_floating_ip_owned_by_project()
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