Module Expr Str 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 Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore AttributeLoad NameLoad 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 AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num 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 AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad 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 cloudroast.images.fixtures ImagesFixture TestGetImageMemberPositive N/A ImagesFixture N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super TestGetImageMemberPositive cls setUpClass N/A N/A cls images N/A N/A N/A cls images_behavior create_images_via_task count 2 N/A classmethod test_get_image_member_as_member_image_shared_with N/A N/A self N/A N/A N/A 
        @summary: Get image member of image as member the image was shared with

        1) Create image
        2) Add image member
        3) Verify that the response code is 200
        4) As the member that the image was shared with, get image member
        5) Verify that the response code is 200
        6) Verify that the response contains the expected data
         N/A member_id N/A self alt_tenant_id N/A image N/A N/A N/A self images pop N/A response N/A N/A N/A self images_client add_member N/A image id_ member_id N/A N/A N/A self assertEqual N/A response status_code 200 N/A member N/A response entity N/A response N/A N/A N/A self alt_images_client get_member N/A image id_ N/A member member_id N/A N/A N/A self assertEqual N/A response status_code 200 N/A get_member N/A response entity N/A N/A N/A N/A self images_behavior validate_image_member N/A image id_ get_member N/A member member_id N/A N/A tags type positive regression true test_get_image_member_membership_states N/A N/A self N/A N/A N/A 
        @summary: Get image member of image when membership has a pending,
        accepted, and rejected status

        1) Create image
        2) Add image member
        3) Verify that the response code is 200
        4) Get image member
        5) Verify that the response code is 200
        6) Verify that the membership status is 'pending'
        7) Verify that the response contains the expected data
        8) As alt_member, accept the image
        9) Verify that the response code is 200
        10) Get image member
        11) Verify that the response code is 200
        12) Verify that the membership status is 'accepted'
        13) Verify that the response contains the expected data
        14) As alt_member, reject the image
        15) Verify that the response code is 200
        16) Get image member
        17) Verify that the response code is 200
        18) Verify that the membership status is 'rejected'
        19) Verify that the response contains the expected data
         N/A member_id N/A self alt_tenant_id N/A image N/A N/A N/A self images pop N/A membership_states N/A N/A ImageMemberStatus PENDING N/A ImageMemberStatus ACCEPTED N/A ImageMemberStatus REJECTED N/A response N/A N/A N/A self images_client add_member N/A image id_ member_id N/A N/A N/A self assertEqual N/A response status_code 200 N/A member N/A response entity N/A state membership_states N/A N/A N/A state N/A ImageMemberStatus PENDING N/A N/A response N/A N/A N/A self alt_images_client update_member N/A image id_ member_id state N/A N/A N/A self assertEqual N/A response status_code 200 N/A response N/A N/A N/A self images_client get_member N/A image id_ N/A member member_id N/A N/A N/A self assertEqual N/A response status_code 200 N/A get_member N/A response entity N/A N/A N/A self assertEqual N/A get_member status state N/A N/A N/A N/A self images_behavior validate_image_member N/A image id_ get_member N/A member member_id N/A N/A tags type positive regression true N/A