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

Tests For ZoneManager

class nova.tests.test_zones.FakeZone(*args, **kwargs)

Represents a fake zone from the db

class nova.tests.test_zones.ZoneManagerTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test case for zone manager

test_ping()
test_poll_zone()
test_poll_zone_fails()
test_refresh_from_db_add_and_delete()
test_refresh_from_db_missing()
test_refresh_from_db_new()
test_refresh_from_db_replace_existing()
test_service_capabilities()
nova.tests.test_zones.exploding_novaclient(zone)

Used when we want to simulate a novaclient call failing.