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

Unit Tests for flat network code

class nova.tests.test_flat_network.FlatNetworkTestCase(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 allocate a public ip

test_side_effects()

Ensures allocating and releasing has no side effects

test_too_many_addresses()

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