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_vlan_network Module

Unit Tests for vlan network code

class nova.tests.test_vlan_network.VlanNetworkTestCase(methodName='runTest')

Bases: nova.tests.network.base.NetworkTestCase

Test cases for network code

run(result=None)
test_allocate_deallocate_fixed_ip()

Makes sure that we can allocate and deallocate a fixed ip

test_ips_are_reused()

Makes sure that ip addresses that are deallocated get reused

test_public_network_association()

Makes sure that we can allocaate a public ip

test_side_effects()

Ensures allocating and releasing has no side effects

test_subnet_edge()

Makes sure that private ips don’t overlap

test_too_many_addresses()

Test for a NoMoreAddresses exception when all fixed ips are used.

test_too_many_networks()

Ensure error is raised if we run out of networks

test_vpn_ip_and_port_looks_valid()

Ensure the vpn ip and port are reasonable