Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr BoolOpAnd NameLoad NameLoad NameLoad Str Call NameLoad keyword Str keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore 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 Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr BoolOpAnd NameLoad NameLoad NameLoad Str Call NameLoad keyword Str keyword Str keyword Str decorator_list
N/A N/A 
Copyright 2014 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 unittest cafe.drivers.unittest.decorators tags cloudcafe.images.common.types ImageMemberStatus cloudcafe.images.config ImagesConfig cloudroast.images.fixtures ObjectStorageIntegrationFixture N/A images_config N/A ImagesConfig N/A allow_post_images N/A images_config allow_post_images N/A allow_put_image_file N/A images_config allow_put_image_file N/A allow_get_image_file N/A images_config allow_get_image_file TestGetImageFile N/A ObjectStorageIntegrationFixture N/A test_get_image_file N/A N/A self N/A N/A N/A 
        @summary: Get image file

        1) Create new image containing data file
        2) Get image file
        3) Verify that the response code is 200
        4) Verify that the image file contains the correct data
         N/A image N/A N/A N/A self images_behavior create_new_image N/A response N/A N/A N/A self images_client store_image_file N/A image id_ N/A self test_file N/A N/A N/A self assertEqual N/A response status_code 204 N/A response N/A N/A N/A self images_client get_image_file N/A image id_ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A response content N/A self test_file N/A N/A N/A unittest skipUnless N/A allow_post_images allow_put_image_file allow_get_image_file Endpoint has incorrect access N/A tags type positive regression true skipable true test_get_image_file_as_a_member_of_the_image N/A N/A self N/A N/A N/A 
        @summary: Get image file as a member of the image

        1. Create image as tenant
        2. Store image file as tenant
        3. Verify that the response code is 204
        4. Add alternative tenant as a member of the image
        5. Verify that alternative tenant belongs to image members list
        6. Get image file as alternative tenant
        7. Verify that the response code is 200
        8. Verify that the response content is the same as file data
         N/A image N/A N/A N/A self images_behavior create_new_image N/A response N/A N/A N/A self images_client store_image_file N/A image id_ N/A self test_file N/A N/A N/A self assertEqual N/A response status_code 204 N/A response N/A N/A N/A self images_client add_member image_id N/A image id_ member_id N/A self alt_tenant_id N/A N/A N/A self assertEqual N/A response status_code 200 N/A member N/A response entity N/A N/A N/A self assertEqual N/A member member_id N/A self alt_tenant_id N/A N/A N/A self assertEqual N/A member status N/A ImageMemberStatus PENDING N/A members_ids N/A N/A N/A self images_behavior get_member_ids image_id N/A image id_ N/A N/A N/A self assertIn N/A self alt_tenant_id members_ids N/A response N/A N/A N/A self alt_images_client get_image_file image_id N/A image id_ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A response content N/A self test_file N/A N/A N/A unittest skipUnless N/A allow_post_images allow_put_image_file allow_get_image_file Endpoint has incorrect access N/A tags type positive regression true skipable true N/A