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 NameLoad Str 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 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 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 Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad AttributeLoad NameLoad attr orelse If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr 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.
 cloudcafe.common.tools.datagen rand_name cloudcafe.glance.common.constants Messages cloudroast.glance.fixtures ImagesFixture ImageTagOperationsActions N/A ImagesFixture N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super ImageTagOperationsActions cls setUpClass N/A N/A cls tag N/A rand_name tag 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 image_tag_operations_actions count 2 N/A N/A cls add_image_tag_image N/A N/A created_images pop N/A N/A cls delete_image_tag_image N/A N/A created_images pop N/A N/A N/A N/A N/A cls images client add_image_tag N/A N/A cls delete_image_tag_image id_ N/A cls tag 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 ImageTagOperationsActions cls tearDownClass N/A classmethod test_add_single_image_tag N/A N/A self N/A N/A N/A 
        @summary: Add single image tag

        1) Add image tag via add/delete image tag wrapper method
        2) Verify that the added image tag is in the list of image tags
         N/A get_image N/A N/A self _add_delete_image_tag N/A N/A self add_image_tag_image id_ N/A N/A N/A self assertIn N/A self tag N/A get_image tags msg N/A N/A Unexpected tag for image {0} received. Expected: {1} in tags Received: {2} not in tags format N/A N/A self add_image_tag_image id_ N/A self tag N/A get_image tags N/A test_delete_single_image_tag N/A N/A self N/A N/A N/A 
        @summary: Delete single image tag

        1) Delete image tag via add/delete image tag wrapper method
        2) Verify that the deleted image tag is not in the list of image tags
         N/A get_image N/A N/A self _add_delete_image_tag N/A N/A self delete_image_tag_image id_ delete N/A N/A N/A self assertNotIn N/A self tag N/A get_image tags msg N/A N/A Unexpected tag for image {0} received. Expected: {1} in tags Received: {2} not in tags format N/A N/A self delete_image_tag_image id_ N/A self tag N/A get_image tags N/A _add_delete_image_tag N/A N/A self image_id api N/A add N/A N/A 
        @summary: Add/Delete an image tag and return the get image details
        response

        @param image_id: Image id to add/delete image tag to/from
        @type image_id: Uuid
        @param api: Api action to perform on image
        @type api: String

        @return: Get image details response
        @rtype: Object

        1) Delete image tag
        2) Verify that the response code is 204
        3) Get image details
        4) Verify that the response is ok
        5) Return get image details response
         N/A N/A N/A N/A api lower delete N/A N/A resp N/A N/A N/A N/A self images client delete_image_tag image_id N/A self tag N/A N/A N/A N/A N/A api lower add N/A N/A resp N/A N/A N/A N/A self images client add_image_tag image_id N/A self tag N/A N/A N/A N/A self fail N/A N/A Unexpected api action received. Expected: add or delete Received: {0} format api N/A N/A N/A self assertEqual N/A resp status_code 204 N/A N/A N/A Messages STATUS_CODE_MSG format 204 N/A resp status_code N/A resp N/A N/A N/A N/A self images client get_image_details image_id N/A N/A N/A self assertTrue N/A resp ok N/A N/A N/A Messages OK_RESP_MSG format N/A resp status_code N/A N/A resp entity N/A N/A