Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias 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 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 Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str NameLoad 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 NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr 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 AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr 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 AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad 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 AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr 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 AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad 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 AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr 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 AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad 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 AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr decorator_list decorator_list NameLoad
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.
 cafe.drivers.unittest.decorators data_driven_test DataDrivenFixture cloudcafe.common.tools.datagen rand_name cloudcafe.glance.common.constants Messages cloudcafe.glance.common.types ImageStatus cloudroast.glance.fixtures ImagesIntegrationFixture cloudroast.glance.generators ImagesDatasetListGenerator ReactivateImage N/A ImagesIntegrationFixture N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super ReactivateImage cls setUpClass 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 deactivate_image count 3 N/A N/A cls deleted_image N/A N/A created_images pop N/A N/A N/A N/A N/A cls images client delete_image N/A N/A cls deleted_image id_ N/A N/A cls protected_image N/A N/A created_images pop N/A N/A N/A N/A N/A cls images_admin client deactivate_image N/A N/A cls protected_image id_ N/A N/A N/A N/A N/A cls images client update_image N/A N/A cls protected_image id_ replace N/A protected True N/A N/A cls deactivated_image N/A N/A created_images pop N/A N/A N/A N/A N/A cls images_admin client deactivate_image N/A N/A cls deactivated_image id_ N/A created_server N/A N/A N/A N/A N/A N/A cls compute servers behaviors create_active_server image_ref N/A N/A N/A cls images config primary_image entity N/A N/A N/A N/A cls resources add N/A created_server id N/A N/A N/A N/A cls compute servers client delete_server N/A N/A cls created_snapshot N/A N/A N/A N/A N/A N/A cls compute images behaviors create_active_image N/A created_server id entity N/A N/A N/A N/A cls resources add N/A N/A cls created_snapshot id N/A N/A N/A cls images client delete_image N/A N/A N/A N/A N/A cls images_admin client deactivate_image N/A N/A cls created_snapshot id N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A N/A N/A N/A cls images client update_image N/A N/A cls protected_image id_ replace N/A protected False 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 ReactivateImage cls tearDownClass N/A classmethod ddtest_reactivate_image N/A N/A self image N/A N/A N/A 
        @summary: Reactivate an image

        1) Reactivate an image
        2) Verify that the response code is 204
        3) Get image details passing in the image id
        4) Verify that the response is ok
        5) Verify that the returned image's status is active
         N/A resp N/A N/A N/A N/A self images_admin client reactivate_image N/A image id_ 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 N/A 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 get_image N/A resp entity N/A N/A N/A self assertEqual N/A get_image status N/A ImageStatus ACTIVE msg N/A N/A Unexpected status for image {0}. Expected: {1} Received: {2} format N/A image id_ N/A ImageStatus ACTIVE N/A get_image status N/A N/A data_driven_test N/A N/A ImagesDatasetListGenerator ReactivateImageTypes test_reactivate_protected_image N/A N/A self N/A N/A N/A 
        @summary: Reactivate a protected image

        1) Reactivate a protected image
        2) Verify that the response code is 204
        3) Get image details passing in the image id
        4) Verify that the response is ok
        5) Verify that the returned image's status is active
         N/A resp N/A N/A N/A N/A self images_admin client reactivate_image N/A N/A self protected_image id_ 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 N/A N/A self protected_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 get_image N/A resp entity N/A N/A N/A self assertEqual N/A get_image status N/A ImageStatus ACTIVE msg N/A N/A Unexpected status for image {0}. Expected: {1} Received: {2} format N/A N/A self protected_image id_ N/A ImageStatus ACTIVE N/A get_image status N/A test_reactivate_snapshot_image N/A N/A self N/A N/A N/A 
        @summary: Reactivate a snapshot image

        1) Reactivate a snapshot image
        2) Verify that the response code is 204
        3) Get image details passing in the image id
        4) Verify that the response is ok
        5) Verify that the returned image's status is active
         N/A resp N/A N/A N/A N/A self images_admin client reactivate_image N/A N/A self created_snapshot id 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 N/A N/A self created_snapshot 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 get_image N/A resp entity N/A N/A N/A self assertEqual N/A get_image status N/A ImageStatus ACTIVE msg N/A N/A Unexpected status for image {0}. Expected: {1} Received: {2} format N/A N/A self created_snapshot id N/A ImageStatus ACTIVE N/A get_image status N/A test_reactivate_deleted_image N/A N/A self N/A N/A N/A 
        @summary: Reactivate a deleted image

        1) Reactivate a deleted image
        2) Verify that the response code is 404
         N/A resp N/A N/A N/A N/A self images_admin client reactivate_image N/A N/A self deleted_image id_ N/A N/A N/A self assertEqual N/A resp status_code 404 N/A N/A N/A Messages STATUS_CODE_MSG format 404 N/A resp status_code N/A test_reactivate_image_using_non_admin_forbidden N/A N/A self N/A N/A N/A 
        @summary: Reactivate an image as non-admin

        1) Reactivate an image as non-admin
        2) Verify that the response code is 403
        3) Get image details passing in the image id
        4) Verify that the response is ok
        5) Verify that the returned image's status is still deactivated
         N/A resp N/A N/A N/A N/A self images client reactivate_image N/A N/A self deactivated_image id_ N/A N/A N/A self assertEqual N/A resp status_code 403 N/A N/A N/A Messages STATUS_CODE_MSG format 403 N/A resp status_code N/A resp N/A N/A N/A N/A self images client get_image_details N/A N/A self deactivated_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 get_image N/A resp entity N/A N/A N/A self assertEqual N/A get_image status N/A ImageStatus DEACTIVATED msg N/A N/A Unexpected status for image {0}. Expected: {1} Received: {2} format N/A N/A self deactivated_image id_ N/A ImageStatus DEACTIVATED N/A get_image status N/A test_reactivate_image_using_invalid_image_id N/A N/A self N/A N/A N/A 
        @summary: Reactivate an image using an invalid image id

        1) Reactivate an image using an invalid image id
        2) Verify that the response code is 404
         N/A resp N/A N/A N/A N/A self images_admin client deactivate_image image_id invalid N/A N/A N/A self assertEqual N/A resp status_code 404 N/A N/A N/A Messages STATUS_CODE_MSG format 404 N/A resp status_code N/A N/A DataDrivenFixture