Module Import alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Assign AttributeStore NameLoad attr Dict Str Dict Str Str Str ListLoad Dict Str Str Str Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Str decorator_list decorator_list Call AttributeLoad NameLoad attr Str
N/A N/A json N/A mock solum.api.handlers infrastructure_handler infra solum.tests base solum.tests fakes solum.tests utils TestInfrastructureStackHandler N/A N/A base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestInfrastructureStackHandler self setUp N/A N/A self ctx N/A N/A utils dummy_context N/A test_get N/A N/A self mock_registry N/A N/A N/A N/A N/A N/A mock_registry InfrastructureStack get_by_uuid return_value N/A N/A handler N/A N/A infra InfrastructureStackHandler N/A self ctx N/A res N/A N/A handler get test_id N/A N/A N/A self assertIsNotNone res N/A N/A N/A N/A N/A mock_registry InfrastructureStack get_by_uuid assert_called_once_with N/A self ctx test_id N/A test_get_all N/A N/A self mock_registry N/A N/A N/A N/A N/A N/A mock_registry StackList get_all return_value N/A N/A handler N/A N/A infra InfrastructureStackHandler N/A self ctx N/A res N/A N/A handler get_all N/A N/A N/A self assertIsNotNone res N/A N/A N/A N/A N/A mock_registry InfrastructureStackList get_all assert_called_once_with N/A self ctx N/A test_update N/A N/A self mock_reg N/A N/A N/A data N/A user_id image_id heat_stack_id new_user_id new_image_id new_stack_id N/A handler N/A N/A infra InfrastructureStackHandler N/A self ctx N/A N/A N/A handler update test_id data N/A N/A N/A N/A N/A mock_reg InfrastructureStack update_and_save assert_called_once_with N/A self ctx test_id data N/A test_create N/A N/A self mock_get mock_clients mock_registry N/A N/A N/A data N/A user_id image_id new_user_id new_image_id N/A db_obj N/A N/A fakes FakeInfrastructureStack N/A fake_template N/A N/A json dumps N/A description test N/A N/A mock_get return_value fake_template N/A parameters N/A image new_image_id N/A N/A N/A mock_registry InfrastructureStack return_value db_obj N/A mock_create N/A N/A N/A N/A N/A mock_clients return_value heat return_value stacks create N/A N/A mock_create return_value N/A stack N/A id links fake_id N/A N/A href rel http://fake.ref self N/A mock_queue N/A N/A N/A N/A mock_clients return_value zaqar return_value queue N/A handler N/A N/A infra InfrastructureStackHandler N/A self ctx N/A res N/A N/A handler create data N/A N/A N/A N/A db_obj update assert_called_once_with data N/A N/A N/A N/A db_obj create assert_called_once_with N/A self ctx N/A N/A N/A self assertEqual db_obj res N/A N/A N/A mock_create assert_called_once_with stack_name infra template fake_template parameters parameters N/A N/A N/A mock_queue assert_called_once_with N/A db_obj uuid N/A N/A N/A mock patch solum.common.clients.OpenStackClients N/A N/A mock patch solum.common.catalog.get test_create_zaqar_queue N/A N/A self mock_clients mock_registry N/A N/A N/A queue_name test N/A mock_queue N/A N/A N/A N/A mock_clients return_value zaqar return_value queue N/A handler N/A N/A infra InfrastructureStackHandler N/A self ctx N/A N/A N/A handler _create_zaqar_queue queue_name N/A N/A N/A mock_queue assert_called_once_with queue_name N/A N/A N/A mock patch solum.common.clients.OpenStackClients test_delete N/A N/A self mock_registry N/A N/A N/A db_obj N/A N/A fakes FakeInfrastructureStack N/A N/A N/A N/A mock_registry InfrastructureStack get_by_uuid return_value db_obj N/A handler N/A N/A infra InfrastructureStackHandler N/A self ctx N/A N/A N/A handler delete test_id N/A N/A N/A N/A db_obj destroy assert_called_once_with N/A self ctx N/A N/A N/A N/A N/A mock_registry InfrastructureStack get_by_uuid assert_called_once_with N/A self ctx test_id N/A N/A N/A N/A mock patch solum.objects.registry