This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 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_delete_expired_host_services_del_all_hosts()
test_delete_expired_host_services_del_one_service()
test_delete_expired_host_services_del_one_service_per_host()
test_get_zone_capabilities_all_stale_host_services()
test_get_zone_capabilities_expired_host()
test_get_zone_capabilities_multiple_hosts()
test_get_zone_capabilities_multiple_service_per_host()
test_get_zone_capabilities_one_host()
test_get_zone_capabilities_one_stale_host()
test_get_zone_capabilities_one_stale_service_per_host()
test_get_zone_capabilities_three_stale_host_services()
test_host_service_caps_stale_all_stale_services()
test_host_service_caps_stale_no_stale_service()
test_host_service_caps_stale_one_stale_service()
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.