Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr 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 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 decorator_list Call NameLoad keyword Str keyword Str decorator_list
N/A N/A 
Copyright 2013 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.
 cafe.drivers.unittest.decorators tags cloudcafe.images.common.types ImageMemberStatus ImageVisibility cloudroast.images.fixtures ImagesFixture VisibilityOfImagesSharedBetweenUsersTest N/A ImagesFixture N/A test_visibility_of_images_shared_between_users N/A N/A self N/A N/A N/A 
        @summary: Image visibility of available images to user

        1) Create image (image_share_accept) as tenant
        2) Create another image (image_share_reject) as tenant
        3) Create another image (image_share_pending) as tenant
        4) Create an image (alt_user_image) as alternative tenant
        5) Create an image (third_user_image) as third tenant
        6) Share image_share_accept with alternative tenant
        7) Share image_share_reject with alternative tenant
        8) Share image_share_pending with alternative tenant
        9) Update alternative tenant membership status to 'accepted' for
        image_share_accept
        10) Update alternative tenant membership status to 'rejected' for
        image_share_reject
        11) Verify that alternative tenant images list contains alt_user_image
        12) Verify that alternative tenant images list does not contain
        image_share_reject, image_share_pending and third_user_image
        13) Verify that alternative tenant can access image_share_reject
        14) Verify that alternative tenant can access image_share_pending
         N/A alt_tenant_id N/A self alt_tenant_id N/A images N/A N/A N/A self images_behavior create_images_via_task count 3 N/A image_share_accept N/A N/A images pop N/A image_share_reject N/A N/A images pop N/A image_share_pending N/A N/A images pop N/A alt_user_image N/A N/A N/A self alt_images_behavior create_image_via_task N/A third_user_image N/A N/A N/A self third_images_behavior create_image_via_task N/A image_id N/A N/A image_share_accept id_ N/A image_share_reject id_ N/A image_share_pending id_ N/A N/A response N/A N/A N/A self images_client add_member image_id image_id member_id 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 alt_tenant_id N/A N/A N/A self assertEqual N/A member status N/A ImageMemberStatus PENDING N/A response N/A N/A N/A self alt_images_client update_member image_id N/A image_share_accept id_ member_id alt_tenant_id status N/A ImageMemberStatus ACCEPTED N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A response entity status N/A ImageMemberStatus ACCEPTED N/A response N/A N/A N/A self alt_images_client update_member image_id N/A image_share_reject id_ member_id alt_tenant_id status N/A ImageMemberStatus REJECTED N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A response entity status N/A ImageMemberStatus REJECTED N/A response N/A N/A N/A self alt_images_client list_images N/A N/A N/A self assertEqual N/A response status_code 200 N/A alt_user_images N/A response entity N/A N/A N/A self assertIn alt_user_image alt_user_images N/A N/A N/A self assertIn image_share_accept alt_user_images N/A N/A N/A self assertNotIn image_share_reject alt_user_images N/A N/A N/A self assertNotIn image_share_pending alt_user_images N/A N/A N/A self assertNotIn third_user_image alt_user_images N/A response N/A N/A N/A self alt_images_client get_image image_id N/A image_share_reject id_ N/A N/A N/A self assertEqual N/A response status_code 200 N/A image_rejected N/A response entity N/A N/A N/A self assertEqual N/A image_rejected id_ N/A image_share_reject id_ N/A N/A N/A self assertEqual N/A image_rejected visibility N/A ImageVisibility PRIVATE N/A response N/A N/A N/A self alt_images_client get_image image_id N/A image_share_pending id_ N/A N/A N/A self assertEqual N/A response status_code 200 N/A image_pending N/A response entity N/A N/A N/A self assertEqual N/A image_pending id_ N/A image_share_pending id_ N/A N/A N/A self assertEqual N/A image_pending visibility N/A ImageVisibility PRIVATE N/A N/A tags type positive regression true N/A