Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str 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 Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Return Dict Str Str Num Dict Str Str Num Num decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Str Str Str Num NameLoad Str Str AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Dict Str Dict Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad NameLoad Num Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list
N/A N/A stubout nova exception nova flags nova vsa nova volume nova db nova context nova test nova log logging N/A nova.image.fake N/A FLAGS N/A flags FLAGS N/A LOG N/A N/A logging getLogger nova.tests.vsa.volumes VsaVolumesTestCase N/A N/A test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super VsaVolumesTestCase self setUp N/A N/A self stubs N/A N/A stubout StubOutForTesting N/A N/A self vsa_api N/A N/A vsa API N/A N/A self volume_api N/A N/A volume API N/A N/A self context N/A N/A context get_admin_context N/A N/A self default_vol_type N/A N/A N/A self vsa_api get_vsa_volume_type N/A self context fake_show_by_name N/A N/A meh context name N/A N/A N/A N/A id properties 1 N/A kernel_id ramdisk_id 1 1 N/A N/A N/A N/A N/A self stubs Set N/A N/A N/A nova image fake _FakeImageService show_by_name fake_show_by_name N/A param N/A display_name VSA name test N/A vsa_ref N/A N/A N/A self vsa_api create N/A self context param N/A N/A self vsa_id N/A vsa_ref N/A id N/A tearDown N/A N/A self N/A N/A N/A N/A self vsa_id N/A N/A N/A N/A N/A self vsa_api delete N/A self context N/A self vsa_id N/A N/A N/A N/A self stubs UnsetAll N/A N/A N/A N/A super VsaVolumesTestCase self tearDown N/A _default_volume_param N/A N/A self N/A N/A N/A N/A size snapshot_id name description volume_type metadata 1 None Test volume name Test volume desc name N/A self default_vol_type N/A from_vsa_id N/A self vsa_id N/A _get_all_volumes_by_vsa N/A N/A self N/A N/A N/A N/A N/A N/A self volume_api get_all N/A self context search_opts N/A metadata N/A from_vsa_id N/A str N/A self vsa_id N/A test_vsa_volume_create_delete N/A N/A self N/A N/A N/A  Check if volume properly created and deleted.  N/A volume_param N/A N/A self _default_volume_param N/A volume_ref N/A N/A N/A self volume_api create N/A self context volume_param N/A N/A N/A self assertEqual N/A volume_ref N/A display_name N/A volume_param N/A name N/A N/A N/A self assertEqual N/A volume_ref N/A display_description N/A volume_param N/A description N/A N/A N/A self assertEqual N/A volume_ref N/A size N/A volume_param N/A size N/A N/A N/A self assertEqual N/A volume_ref N/A status creating N/A vols2 N/A N/A self _get_all_volumes_by_vsa N/A N/A N/A self assertEqual 1 N/A len vols2 N/A volume_ref N/A vols2 N/A 0 N/A N/A N/A self assertEqual N/A volume_ref N/A display_name N/A volume_param N/A name N/A N/A N/A self assertEqual N/A volume_ref N/A display_description N/A volume_param N/A description N/A N/A N/A self assertEqual N/A volume_ref N/A size N/A volume_param N/A size N/A N/A N/A self assertEqual N/A volume_ref N/A status creating N/A N/A N/A N/A self volume_api update N/A self context N/A volume_ref N/A id N/A status available N/A N/A N/A N/A self volume_api delete N/A self context N/A volume_ref N/A id N/A vols3 N/A N/A self _get_all_volumes_by_vsa N/A N/A N/A self assertEqual 1 N/A len vols2 N/A volume_ref N/A vols3 N/A 0 N/A N/A N/A self assertEqual N/A volume_ref N/A status deleting N/A test_vsa_volume_delete_nonavail_volume N/A N/A self N/A N/A N/A  Check volume deleton in different states.  N/A volume_param N/A N/A self _default_volume_param N/A volume_ref N/A N/A N/A self volume_api create N/A self context volume_param N/A N/A N/A N/A self volume_api update N/A self context N/A volume_ref N/A id N/A status in-use N/A N/A N/A self assertRaises N/A exception ApiError N/A N/A self volume_api delete N/A self context N/A volume_ref N/A id N/A test_vsa_volume_delete_vsa_with_volumes N/A N/A self N/A N/A N/A  Check volume deleton in different states.  N/A vols1 N/A N/A self _get_all_volumes_by_vsa N/A i N/A range 3 N/A N/A volume_param N/A N/A self _default_volume_param N/A volume_ref N/A N/A N/A self volume_api create N/A self context volume_param N/A vols2 N/A N/A self _get_all_volumes_by_vsa N/A N/A N/A self assertEqual N/A N/A len vols1 3 N/A len vols2 N/A N/A N/A N/A self vsa_api delete N/A self context N/A self vsa_id N/A vols3 N/A N/A self _get_all_volumes_by_vsa N/A N/A N/A self assertEqual N/A len vols1 N/A len vols3 N/A N/A