Module Expr Str ImportFrom alias ImportFrom alias 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 Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad 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 Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call NameLoad 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.
 cafe.drivers.unittest.decorators tags cloudcafe.compute.common.exceptions Forbidden ItemNotFound cloudroast.images.fixtures ImagesFixture TestDeleteImageNegative N/A ImagesFixture N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super TestDeleteImageNegative cls setUpClass N/A N/A cls images N/A N/A N/A cls images_behavior create_images_via_task count 3 N/A classmethod test_delete_image_using_blank_image_id N/A N/A self N/A N/A N/A 
        @summary: Delete image using blank image id

        1) Delete image using blank image id
        2) Verify that the response code is 404
         N/A image_id N/A N/A N/A self assertRaises ItemNotFound N/A N/A N/A N/A N/A self images_client delete_image image_id N/A N/A tags type negative regression true test_delete_image_using_invalid_image_id N/A N/A self N/A N/A N/A 
        @summary: Delete image using invalid image id

        1) Delete image using invalid image id
        2) Verify that the response code is 404
         N/A image_id invalid N/A N/A N/A self assertRaises ItemNotFound N/A N/A N/A N/A N/A self images_client delete_image image_id N/A N/A tags type negative regression true test_delete_image_that_is_already_deleted N/A N/A self N/A N/A N/A 
        @summary: Delete image that is already deleted

        1) Given a previously created image, delete image
        2) Verify that the response code is 204
        3) Delete image again
        4) Verify that the response code is 404
         N/A image N/A N/A N/A self images pop N/A response N/A N/A N/A self images_client delete_image N/A image id_ N/A N/A N/A self assertEqual N/A response status_code 204 N/A N/A N/A self assertRaises ItemNotFound N/A N/A N/A N/A N/A self images_client delete_image N/A image id_ N/A N/A tags type negative regression true test_delete_image_that_is_protected N/A N/A self N/A N/A N/A 
        @summary: Delete image that is protected

        1) Given a previously created image, update image setting protected to
        true
        2) Verify that the response code is 204
        3) Delete image
        4) Verify that the response code is 403
         N/A image N/A N/A N/A self images pop N/A protected True N/A response N/A N/A N/A self images_client update_image N/A image id_ replace N/A protected protected N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertRaises Forbidden N/A N/A N/A N/A N/A self images_client delete_image N/A image id_ N/A N/A tags type negative regression true test_delete_image_as_member_of_shared_image N/A N/A self N/A N/A N/A 
        @summary: Delete image as member of shared image

        1) Given a previously created image, add alternate tenant as member of
        image
        2) Delete image as member of shared image
        3) Verify that the response code is 403
         N/A image N/A N/A N/A self images pop N/A member_id N/A self alt_tenant_id N/A N/A N/A N/A self images_client add_member N/A image id_ member_id N/A N/A N/A self assertRaises Forbidden N/A N/A N/A N/A N/A self alt_images_client delete_image N/A image id_ N/A N/A tags type negative regression true N/A