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

class nova.tests.test_hosts.FakeRequest

Bases: object

class nova.tests.test_hosts.HostTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test Case for hosts.

setUp()
test_bad_host()
test_bad_status_value()
test_bad_update_key()
test_disable_host()
test_enable_host()
test_host_reboot()
test_host_shutdown()
test_host_startup()
test_list_hosts()

Verify that the compute hosts are returned.

nova.tests.test_hosts.stub_get_host_list(req)
nova.tests.test_hosts.stub_host_power_action(context, host, action)
nova.tests.test_hosts.stub_set_host_enabled(context, host, enabled)