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

Unit Tests for remote procedure calls using queue

class nova.tests.test_service.ExtendedService(host, binary, topic, manager, report_interval=None, periodic_interval=None, *args, **kwargs)

Bases: nova.service.Service

test_method()
class nova.tests.test_service.FakeManager(host=None, db_driver=None)

Bases: nova.manager.Manager

Fake manager for tests

test_method()
class nova.tests.test_service.ServiceFlagsTestCase(methodName='runTest')

Bases: nova.test.TestCase

test_service_disabled_on_create_based_on_flag()
test_service_enabled_on_create_based_on_flag()
class nova.tests.test_service.ServiceManagerTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test cases for Services

test_message_gets_to_manager()
test_override_manager_method()
class nova.tests.test_service.ServiceTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test cases for Services

setUp()
test_compute_can_update_available_resource()

Confirm compute updates their record of compute-service table.

test_create()
test_report_state_newly_connected()
test_report_state_newly_disconnected()
test_report_state_no_service()