The nova.tests.cells.test_cells_messaging Module

Tests For Cells Messaging module

class CellsBroadcastMethodsTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Test case for _BroadcastMessageMethods class. Most of these tests actually test the full path from the MessageRunner through to the functionality of the message method. Hits 2 birds with 1 stone, even though it’s a little more than a unit test.

setUp()
test_at_the_top()
test_bw_usage_update_at_top()
test_compute_node_get_all()
test_compute_node_get_all_with_hyp_match()
test_compute_node_stats()
test_consoleauth_delete_tokens()
test_instance_destroy_at_top()
test_instance_fault_create_at_top()
test_instance_hard_delete_everywhere()
test_instance_soft_delete_everywhere()
test_instance_update_at_top()
test_service_get_all_with_disabled()
test_service_get_all_without_disabled()
test_sync_instances()
test_task_log_get_all_broadcast()
class CellsMessageClassesTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Test case for the main Cells Message classes.

setUp()
test_broadcast_routing()
test_broadcast_routing_up()
test_broadcast_routing_with_all_erroring()
test_broadcast_routing_with_response()
test_broadcast_routing_with_response_max_hops()
test_broadcast_routing_with_two_erroring()
test_broadcast_routing_without_ourselves()
test_child_targeted_message()
test_create_broadcast_message()
test_create_broadcast_message_with_response()
test_create_targeted_message_with_response()
test_grandchild_targeted_message()
test_grandchild_targeted_message_max_hops()
test_grandchild_targeted_message_with_error()
test_grandchild_targeted_message_with_response()
test_response_cell_name_from_path()
test_response_cell_name_from_path_neighbor_only()
test_reverse_path()
test_self_targeted_message()
test_targeted_message()
test_targeted_message_invalid_cell()
test_targeted_message_invalid_cell2()
test_targeted_message_when_target_cell_state_is_me()
test_targeted_message_when_target_is_cell_state()
class CellsTargetedMethodsTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Test case for _TargetedMessageMethods class. Most of these tests actually test the full path from the MessageRunner through to the functionality of the message method. Hits 2 birds with 1 stone, even though it’s a little more than a unit test.

setUp()
test_action_events_get()
test_action_get_by_request_id()
test_actions_get()
test_announce_capabilities()
test_announce_capacities()
test_compute_node_get()
test_proxy_rpc_to_manager_call()
test_proxy_rpc_to_manager_cast()
test_run_compute_api_method()
test_run_compute_api_method_unknown_instance()
test_schedule_run_instance()
test_service_get_by_compute_host()
test_task_log_get_all_targetted()
test_update_capabilities()
test_update_capacities()
test_validate_console_port()

Previous topic

The nova.tests.cells.test_cells_manager Module

Next topic

The nova.tests.cells.test_cells_rpc_driver Module

This Page