The nova.tests.api.openstack.compute.contrib.test_hosts Module

class FakeRequest

Bases: object

environ = {'nova.context': <nova.context.RequestContext object at 0x1175e34c>}
class HostSerializerTest(methodName='runTest')

Bases: nova.test.TestCase

setUp()
test_action_serializer()
test_index_serializer()
test_update_deserializer()
test_update_serializer_with_maintainance_mode()
test_update_serializer_with_maintainance_mode_and_status()
test_update_serializer_with_status()
class HostTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test Case for hosts.

setUp()
test_bad_host()
test_bad_status_value()
test_bad_update_key()
test_bad_update_key_and_correct_udpate_key()
test_disable_host()
test_disable_maintenance()
test_enable_host()
test_enable_maintenance()
test_good_udpate_keys()
test_host_reboot()
test_host_shutdown()
test_host_startup()
test_list_hosts()

Verify that the compute hosts are returned.

test_show_forbidden()
test_show_host_not_exist()

A host given as an argument does not exists.

test_show_no_project()

No instance are running on the given host.

test_show_works_correctly()

show() works correctly as expected.

stub_host_power_action(context, host, action)
stub_service_get_all(self, req)
stub_set_host_enabled(context, host, enabled)
stub_set_host_maintenance(context, host, mode)

Previous topic

The nova.tests.api.openstack.compute.contrib.test_floating_ips Module

Next topic

The nova.tests.api.openstack.compute.contrib.test_hypervisors Module

This Page