Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return ListLoad Dict Str Str NameLoad ListLoad Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str NameLoad ListLoad decorator_list decorator_list 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 keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Return ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Return ListLoad AttributeLoad NameLoad attr orelse Return ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Yield Dict Str Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Yield Dict Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Str Str Dict Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Yield Dict Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Yield Dict Str Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str decorator_list decorator_list
N/A __future__ unicode_literals rest_framework status rest_framework test nodeconductor.core.tests helpers nodeconductor.openstack models nodeconductor.openstack.tests factories nodeconductor.structure models structure_models nodeconductor.structure.tests factories structure_factories BackupUsageTest N/A N/A test APITransactionTestCase N/A setUp N/A N/A self N/A N/A N/A N/A self user N/A N/A N/A structure_factories UserFactory create is_staff True is_superuser True N/A N/A N/A N/A self client force_authenticate user N/A self user N/A test_backup_manually_create N/A N/A self N/A N/A N/A backupable N/A N/A factories InstanceFactory state N/A N/A N/A models Instance States OFFLINE N/A backup_data N/A instance N/A N/A N/A factories InstanceFactory get_url backupable N/A url N/A N/A N/A factories BackupFactory get_list_url N/A response N/A N/A N/A self client post url data backup_data N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_201_CREATED N/A N/A N/A N/A N/A models Backup objects get instance_id N/A backupable id N/A backup_data N/A instance some_random_url N/A response N/A N/A N/A self client post url data backup_data N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_400_BAD_REQUEST N/A N/A N/A self assertIn instance N/A response content N/A test_user_cannot_backup_unstable_instance N/A N/A self N/A N/A N/A backupable N/A N/A factories InstanceFactory state N/A N/A N/A models Instance States RESIZING N/A backup_data N/A instance N/A N/A N/A factories InstanceFactory get_url backupable N/A url N/A N/A N/A factories BackupFactory get_list_url N/A response N/A N/A N/A self client post url data backup_data N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_409_CONFLICT N/A N/A N/A self assertEqual N/A N/A response data N/A detail Instance should be in stable state. N/A test_backup_restore N/A N/A self N/A N/A N/A backup N/A N/A factories BackupFactory N/A url N/A N/A N/A factories BackupFactory get_url backup action restore N/A settings N/A N/A N/A N/A backup instance service_project_link service settings N/A user_input N/A flavor N/A N/A N/A factories FlavorFactory get_url N/A N/A factories FlavorFactory settings settings N/A response N/A N/A N/A self client post url data user_input N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A response data N/A test_backup_delete N/A N/A self N/A N/A N/A backup N/A N/A factories BackupFactory N/A url N/A N/A N/A factories BackupFactory get_url backup action delete N/A response N/A N/A N/A self client post url N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A BackupListPermissionsTest N/A N/A helpers ListPermissionsTest N/A get_url N/A N/A self N/A N/A N/A N/A N/A N/A factories BackupFactory get_list_url N/A get_users_and_expected_results N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A models Backup objects all delete N/A instance N/A N/A factories InstanceFactory N/A backup1 N/A N/A factories BackupFactory instance instance N/A backup2 N/A N/A factories BackupFactory instance instance N/A N/A N/A factories BackupFactory instance instance state N/A N/A N/A models Backup States DELETED N/A user_with_view_permission N/A N/A N/A structure_factories UserFactory create is_staff True is_superuser True N/A user_without_view_permission N/A N/A N/A structure_factories UserFactory create N/A N/A N/A user expected_results user_with_view_permission N/A N/A url N/A N/A N/A factories BackupFactory get_url backup1 N/A url N/A N/A N/A factories BackupFactory get_url backup2 N/A user expected_results user_without_view_permission N/A N/A N/A BackupPermissionsTest N/A N/A helpers PermissionsTest N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super BackupPermissionsTest self setUp N/A N/A self customer N/A N/A structure_factories CustomerFactory N/A N/A self project N/A N/A structure_factories ProjectFactory customer N/A self customer N/A N/A self project_group N/A N/A structure_factories ProjectGroupFactory customer N/A self customer N/A N/A N/A N/A N/A self project_group projects add N/A self project N/A N/A self service N/A N/A factories OpenStackServiceFactory customer N/A self customer N/A N/A self spl N/A N/A factories OpenStackServiceProjectLinkFactory service N/A self service project N/A self project N/A N/A self instance N/A N/A factories InstanceFactory service_project_link N/A self spl N/A N/A self backup N/A N/A factories BackupFactory instance N/A self instance N/A N/A self staff N/A N/A structure_factories UserFactory username staff is_staff True N/A N/A self regular_user N/A N/A structure_factories UserFactory username regular user N/A N/A self project_admin N/A N/A structure_factories UserFactory username admin N/A N/A N/A N/A self project add_user N/A self project_admin N/A N/A structure_models ProjectRole ADMINISTRATOR N/A N/A self customer_owner N/A N/A structure_factories UserFactory username owner N/A N/A N/A N/A self customer add_user N/A self customer_owner N/A N/A structure_models CustomerRole OWNER N/A N/A self project_group_manager N/A N/A structure_factories UserFactory username manager N/A N/A N/A N/A self project_group add_user N/A self project_group_manager N/A N/A structure_models ProjectGroupRole MANAGER N/A get_users_with_permission N/A N/A self url method N/A N/A N/A N/A method GET N/A N/A N/A N/A self staff N/A self project_admin N/A self project_group_manager N/A N/A N/A N/A self staff N/A self project_admin N/A self customer_owner N/A get_users_without_permissions N/A N/A self url method N/A N/A N/A N/A method GET N/A N/A N/A N/A self regular_user N/A N/A N/A N/A self project_group_manager N/A get_urls_configs N/A N/A self N/A N/A N/A N/A N/A url method N/A N/A N/A factories BackupFactory get_url N/A self backup GET N/A N/A N/A url method data N/A N/A N/A factories BackupFactory get_url N/A self backup action restore POST N/A flavor image N/A N/A N/A factories FlavorFactory get_url N/A N/A factories FlavorFactory settings N/A N/A self service settings N/A N/A N/A factories ImageFactory get_url N/A N/A factories ImageFactory settings N/A N/A self service settings N/A N/A N/A url method data N/A N/A N/A factories BackupFactory get_list_url POST N/A instance N/A N/A N/A factories InstanceFactory get_url N/A self instance N/A N/A N/A url method N/A N/A N/A factories BackupFactory get_url N/A self backup action delete POST N/A N/A BackupSourceFilterTest N/A N/A test APITransactionTestCase N/A test_filter_backup_by_scope N/A N/A self N/A N/A N/A user N/A N/A N/A structure_factories UserFactory create is_staff True N/A instance1 N/A N/A factories InstanceFactory N/A N/A N/A factories BackupFactory instance instance1 N/A N/A N/A factories BackupFactory instance instance1 N/A instance2 N/A N/A factories InstanceFactory N/A N/A N/A factories BackupFactory instance instance2 N/A N/A N/A N/A self client force_authenticate user user N/A response N/A N/A N/A self client get N/A N/A N/A factories BackupFactory get_list_url N/A N/A N/A self assertEqual 3 N/A len N/A response data N/A response N/A N/A N/A self client get N/A N/A N/A factories BackupFactory get_list_url data N/A instance N/A N/A instance1 uuid hex N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A N/A self assertEqual 2 N/A len N/A response data N/A N/A N/A self assertEqual N/A N/A N/A factories InstanceFactory get_url instance1 N/A N/A N/A response data N/A 0 N/A instance N/A N/A