Module Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias 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 Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Str Str body For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr orelse Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Str Str NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str NameLoad NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Dict Str AttributeLoad Call AttributeLoad NameLoad attr attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Dict Str Dict Str Str NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A uuid N/A mock ooi.api helpers ooi.api storage_link storage_link_api ooi exception ooi.occi.core collection ooi.occi.infrastructure compute ooi.occi.infrastructure storage ooi.occi.infrastructure storage_link ooi.tests base ooi.tests fakes TestStorageLinkController N/A N/A base TestController N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestStorageLinkController self setUp N/A N/A self controller N/A N/A storage_link_api Controller N/A N/A mock MagicMock None N/A test_index N/A N/A self m_volumes N/A N/A N/A tenant N/A N/A N/A fakes tenants values N/A N/A vols N/A N/A fakes volumes N/A N/A tenant N/A id N/A N/A m_volumes return_value vols N/A ret N/A N/A N/A self controller index None N/A N/A N/A self assertIsInstance ret N/A collection Collection N/A N/A N/A tenant N/A name baz N/A N/A N/A idx vol N/A enumerate vols N/A N/A N/A N/A self assertIsInstance N/A N/A ret resources N/A idx N/A storage_link StorageLink N/A server_id N/A N/A N/A vol N/A attachments N/A 0 N/A server_id N/A link_id N/A %s_%s N/A server_id N/A vol N/A id N/A N/A N/A self assertEqual link_id N/A N/A N/A ret resources N/A idx id N/A N/A N/A N/A self assertEqual N/A N/A ret resources N/A N/A N/A m_volumes assert_called_with None N/A N/A N/A N/A mock patch object N/A helpers OpenStackHelper get_volumes test_delete N/A N/A self mock_get mock_delete N/A N/A N/A server_id N/A N/A N/A uuid uuid4 hex N/A vol_id N/A N/A N/A uuid uuid4 hex N/A link_id N/A %s_%s N/A server_id vol_id N/A N/A mock_get return_value N/A serverId volumeId server_id vol_id N/A N/A mock_delete return_value N/A N/A ret N/A N/A N/A self controller delete None link_id N/A N/A N/A self assertEqual N/A ret N/A N/A N/A mock_delete assert_called_with None server_id vol_id N/A N/A N/A mock_get assert_called_with None link_id N/A N/A N/A N/A mock patch object N/A helpers OpenStackHelper delete_server_volumes_link N/A N/A N/A mock patch object N/A storage_link_api Controller _get_attachment_from_id test_show N/A N/A self m_get N/A N/A N/A server_id N/A N/A N/A uuid uuid4 hex N/A vol_id N/A N/A N/A uuid uuid4 hex N/A link_id N/A %s_%s N/A server_id vol_id N/A N/A m_get return_value N/A serverId volumeId device server_id vol_id /dev/sda N/A ret N/A N/A N/A self controller show None link_id N/A link N/A N/A ret pop N/A N/A N/A self assertIsInstance link N/A storage_link StorageLink N/A N/A N/A self assertIsInstance N/A link source N/A compute ComputeResource N/A N/A N/A self assertIsInstance N/A link target N/A storage StorageResource N/A N/A N/A self assertEqual vol_id N/A N/A link target id N/A N/A N/A self assertEqual server_id N/A N/A link source id N/A N/A N/A m_get assert_called_with None link_id N/A N/A N/A N/A mock patch object N/A storage_link_api Controller _get_attachment_from_id test_get_attachment_from_id N/A N/A self m_get N/A N/A N/A server_uuid N/A N/A N/A uuid uuid4 hex N/A vol_uuid N/A N/A N/A uuid uuid4 hex N/A link_id N/A %s_%s N/A server_uuid vol_uuid N/A N/A m_get return_value N/A N/A volumeId N/A N/A N/A uuid uuid4 hex N/A volumeId vol_uuid N/A N/A N/A self assertEqual N/A volumeId vol_uuid N/A N/A N/A self controller _get_attachment_from_id None link_id N/A link_id N/A %s_%s N/A N/A N/A N/A uuid uuid4 hex N/A N/A N/A uuid uuid4 hex N/A N/A N/A self assertRaises N/A exception LinkNotFound N/A N/A self controller _get_attachment_from_id None link_id N/A N/A N/A N/A mock patch object N/A helpers OpenStackHelper get_server_volumes_link test_get_attachment_from_id_invalid N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A exception LinkNotFound N/A N/A self controller _get_attachment_from_id None foobarbaz N/A test_create_link N/A N/A self m_get_id m_validator m_create N/A N/A N/A tenant N/A N/A fakes tenants N/A foo N/A req N/A N/A self _build_req N/A tenant N/A id N/A vol_id N/A N/A N/A uuid uuid4 hex N/A server_id N/A N/A N/A uuid uuid4 hex N/A obj N/A attributes N/A occi.core.target occi.core.source vol_id server_id N/A N/A req get_parser N/A N/A mock MagicMock N/A N/A N/A N/A N/A N/A req get_parser return_value return_value parse return_value obj N/A N/A N/A m_validator validate return_value True N/A N/A m_get_id side_effect N/A N/A vol_id N/A server_id N/A attachment N/A device id serverId volumeId /dev/vdd a26887c6-c47b-4654-abb5-dfadf7d3f803 server_id vol_id N/A N/A m_create return_value attachment N/A ret N/A N/A N/A self controller create req None N/A link N/A N/A N/A ret resources pop N/A N/A N/A self assertIsInstance link N/A storage_link StorageLink N/A N/A N/A self assertIsInstance N/A link source N/A compute ComputeResource N/A N/A N/A self assertIsInstance N/A link target N/A storage StorageResource N/A N/A N/A self assertEqual vol_id N/A N/A link target id N/A N/A N/A self assertEqual server_id N/A N/A link source id N/A N/A N/A m_create assert_called_with N/A mock ANY server_id vol_id dev None N/A N/A N/A N/A mock patch object N/A helpers OpenStackHelper create_server_volumes_link N/A N/A mock patch ooi.occi.validator.Validator N/A N/A mock patch ooi.api.helpers.get_id_with_kind N/A