Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Dict Str Call NameLoad Str keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num keyword Call AttributeLoad Str attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num keyword Call AttributeLoad Str attr Call NameLoad NameLoad Expr ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad keyword Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num keyword Call AttributeLoad Str attr Call NameLoad NameLoad Expr ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad keyword Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGt NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If BoolOpAnd CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGt NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Copyright 2015 Rackspace

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
 N/A calendar N/A time cloudcafe.common.tools.datagen rand_name cloudcafe.glance.common.constants Messages cloudcafe.glance.common.types ImageMemberStatus cloudroast.glance.fixtures ImagesFixture ListImageMembers N/A ImagesFixture N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super ListImageMembers cls setUpClass N/A N/A cls alt_member_id N/A N/A N/A cls images_alt_one auth tenant_id N/A N/A cls alt_two_member_id N/A N/A N/A cls images_alt_two auth tenant_id N/A created_images N/A N/A N/A N/A cls images behaviors create_images_via_task image_properties N/A name N/A rand_name list_image_members count 6 N/A N/A cls shared_image N/A N/A created_images pop N/A N/A N/A N/A N/A cls images client create_image_member N/A N/A cls shared_image id_ N/A cls alt_member_id N/A N/A N/A N/A N/A cls images client create_image_member N/A N/A cls shared_image id_ N/A cls alt_two_member_id N/A N/A cls image_member_created_at_time_in_sec N/A N/A calendar timegm N/A N/A time gmtime N/A N/A cls alt_shared_image N/A N/A created_images pop N/A N/A N/A N/A N/A cls images client create_image_member N/A N/A cls alt_shared_image id_ N/A cls alt_member_id N/A N/A N/A N/A N/A cls images client create_image_member N/A N/A cls alt_shared_image id_ N/A cls alt_two_member_id N/A N/A cls no_access_image N/A N/A created_images pop N/A N/A cls delete_image N/A N/A created_images pop N/A N/A N/A N/A N/A cls images client delete_image N/A N/A cls delete_image id_ N/A N/A cls deactivated_image N/A N/A created_images pop N/A N/A N/A N/A N/A cls images client create_image_member N/A N/A cls deactivated_image id_ N/A cls alt_member_id N/A N/A N/A N/A N/A cls images_admin client deactivate_image N/A N/A cls deactivated_image id_ N/A N/A cls reactivated_image N/A N/A created_images pop N/A N/A N/A N/A N/A cls images client create_image_member N/A N/A cls reactivated_image id_ N/A cls alt_member_id N/A N/A N/A N/A N/A cls images_admin client deactivate_image N/A N/A cls reactivated_image id_ N/A N/A N/A N/A N/A cls images_admin client reactivate_image N/A N/A cls reactivated_image id_ N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A N/A N/A N/A N/A cls images behaviors resources release N/A N/A N/A N/A super ListImageMembers cls tearDownClass N/A classmethod test_list_image_members_all_member_statuses N/A N/A self N/A N/A N/A 
        @summary: List image members passing all for member_status

        1) List image members for image with two image members
        2) Verify that the response code is 200
        3) Verify that two image members exist
         N/A status N/A member_status N/A ImageMemberStatus ALL N/A resp N/A N/A N/A N/A self images client list_image_members image_id N/A N/A self shared_image id_ params status N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A Messages STATUS_CODE_MSG format 200 N/A resp status_code N/A listed_image_members N/A resp entity N/A N/A N/A self assertEqual N/A len listed_image_members 2 msg N/A N/A Unexpected number of image members received. Expected: 2 Received: {0} format N/A len listed_image_members N/A test_list_image_members_using_deactivated_image N/A N/A self N/A N/A N/A 
        @summary: List image members using deactivated image

        1) List image members for deactivated image
        2) Verify that the response code is 200
        3) Verify that one image members exist
        4) Verify that the returned image member's properties are as expected
        generically
         N/A image_member_ids N/A N/A errors N/A N/A resp N/A N/A N/A N/A self images client list_image_members N/A N/A self deactivated_image id_ N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A Messages STATUS_CODE_MSG format 200 N/A resp status_code N/A listed_image_members N/A resp entity N/A N/A N/A self assertEqual N/A len listed_image_members 1 msg N/A N/A Unexpected number of image members received. Expected: 1 Received: {0} format N/A len listed_image_members N/A N/A N/A N/A image_member_ids append N/A image_member member_id N/A image_member listed_image_members N/A N/A N/A self assertIn N/A self alt_member_id image_member_ids msg N/A N/A Unexpected image member received. Expected: {0} in list of image members Received: {1} format N/A self alt_member_id image_member_ids N/A image_member listed_image_members N/A N/A errors N/A N/A N/A N/A self images behaviors validate_image_member image_member N/A N/A N/A self assertEqual errors N/A msg N/A N/A Unexpected error received for image {0}. Expected: No errors Received: {1} format N/A N/A self deactivated_image id_ errors N/A test_list_image_members_using_reactivated_image N/A N/A self N/A N/A N/A 
        @summary: List image members using reactivated image

        1) List image members for reactivated image
        2) Verify that the response code is 200
        3) Verify that one image members exist
        4) Verify that the returned image member's properties are as expected
        generically
        5) Verify that the returned image member's properties are as expected
        more specifically
         N/A image_member_ids N/A N/A errors N/A N/A resp N/A N/A N/A N/A self images client list_image_members N/A N/A self reactivated_image id_ N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A Messages STATUS_CODE_MSG format 200 N/A resp status_code N/A listed_image_members N/A resp entity N/A N/A N/A self assertEqual N/A len listed_image_members 1 msg N/A N/A Unexpected number of image members received. Expected: 1 Received: {0} format N/A len listed_image_members N/A N/A N/A N/A image_member_ids append N/A image_member member_id N/A image_member listed_image_members N/A N/A N/A self assertIn N/A self alt_member_id image_member_ids msg N/A N/A Unexpected image member received. Expected: {0} in list of image members Received: {1} format N/A self alt_member_id image_member_ids N/A image_member listed_image_members N/A N/A errors N/A N/A N/A N/A self images behaviors validate_image_member image_member N/A N/A N/A self assertEqual errors N/A msg N/A N/A Unexpected error received for image {0}. Expected: No errors Received: {1} format N/A N/A self reactivated_image id_ errors N/A test_list_image_members_using_invalid_image_id N/A N/A self N/A N/A N/A 
        @summary: List image members using invalid image id

         1) List image members using invalid image id
         2) Verify that the response code is 404
         N/A resp N/A N/A N/A N/A self images client list_image_members image_id invalid N/A N/A N/A self assertEqual N/A resp status_code 404 N/A N/A N/A Messages STATUS_CODE_MSG format 404 N/A resp status_code N/A test_list_image_members_using_blank_image_id N/A N/A self N/A N/A N/A 
        @summary: List image members using blank image id

         1) List image members using blank image id
         2) Verify that the response code is 404
         N/A resp N/A N/A N/A N/A self images client list_image_members image_id N/A N/A N/A self assertEqual N/A resp status_code 404 N/A N/A N/A Messages STATUS_CODE_MSG format 404 N/A resp status_code N/A test_list_image_members_using_deleted_image N/A N/A self N/A N/A N/A 
        @summary: List image members using deleted image

        1) List image members using deleted image
        2) Verify that the response code is 404
         N/A resp N/A N/A N/A N/A self images client list_image_members N/A N/A self delete_image id_ N/A N/A N/A self assertEqual N/A resp status_code 404 N/A N/A N/A Messages STATUS_CODE_MSG format 404 N/A resp status_code N/A test_list_image_members_as_tenant_without_access_to_image N/A N/A self N/A N/A N/A 
        @summary: List image members as tenant without access to the image

        1) List image members as tenant without access to the image
        2) Verify that the response code is 404
        3) Verify that no image members are returned
         N/A resp N/A N/A N/A N/A self images_alt_two client list_image_members N/A N/A self no_access_image id_ N/A N/A N/A self assertEqual N/A resp status_code 404 N/A N/A N/A Messages STATUS_CODE_MSG format 404 N/A resp status_code N/A N/A N/A self assertIsNone N/A resp entity msg N/A N/A Unexpected image member returned. Expected: None Received: {0} format N/A resp entity N/A _validate_image_member N/A N/A self image_member N/A N/A N/A 
        @summary: Validate an image's members' properties and return any errors

        @param image_member: Image members list to be validated
        @type image_member: List

        @return: Errors
        @rtype: List
         N/A errors N/A N/A created_at_delta N/A N/A N/A N/A self images behaviors get_time_delta N/A self image_member_created_at_time_in_sec N/A image_member created_at N/A updated_at_delta N/A N/A N/A N/A self images behaviors get_time_delta N/A self image_member_created_at_time_in_sec N/A image_member updated_at N/A N/A created_at_delta N/A N/A N/A self images config max_created_at_delta N/A N/A N/A N/A errors append N/A N/A N/A Messages PROPERTY_MSG format created_at delta N/A N/A N/A self images config max_created_at_delta created_at_delta N/A N/A N/A image_member image_id N/A N/A self shared_image id_ N/A N/A N/A N/A errors append N/A N/A N/A Messages PROPERTY_MSG format image_id N/A N/A self shared_image id_ N/A image_member image_id N/A N/A N/A N/A image_member member_id N/A self alt_member_id N/A N/A image_member member_id N/A self alt_two_member_id N/A N/A N/A N/A errors append N/A N/A N/A Messages PROPERTY_MSG format member_id N/A N/A {0} or {1} format N/A self alt_member_id N/A self alt_two_member_id N/A image_member member_id N/A N/A N/A image_member status N/A ImageMemberStatus PENDING N/A N/A N/A N/A errors append N/A N/A N/A Messages PROPERTY_MSG format status N/A ImageMemberStatus PENDING N/A image_member status N/A N/A updated_at_delta N/A N/A N/A self images config max_updated_at_delta N/A N/A N/A N/A errors append N/A N/A N/A Messages PROPERTY_MSG format updated_at delta N/A N/A N/A self images config max_updated_at_delta updated_at_delta N/A errors N/A N/A