Module Expr Str ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad Expr Str For NameStore Call NameLoad Num AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Dict Str Str Str NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad Call AttributeLoad Call NameLoad Call NameLoad Call NameLoad NameLoad attr Str Index Num If CompareEq Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Str attr NameLoad orelse If CompareEq Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad Expr Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad Num AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Expr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad Expr Str Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad Expr Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Num For NameStore Call NameLoad Call NameLoad Num AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad Expr Str Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad AugAssignAdd NameStore Num Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpSub AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad Expr Str Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Dict Str Str Str NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str 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 randomstring randstring cloudcafe.objectstorage.objectstorage_api.common.constants Constants cloudroast.objectstorage.fixtures ObjectStorageFixture N/A CONTENT_TYPE_TEXT text/plain; charset=UTF-8 N/A CONTAINER_NAME object_versioning_test N/A BASE_DATA Version_ ObjectVersioningTest N/A ObjectStorageFixture N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super ObjectVersioningTest cls setUpClass N/A N/A cls container_name CONTAINER_NAME N/A N/A cls object_name N/A N/A {0}_{1} format N/A Constants VALID_OBJECT_NAME N/A N/A randstring get_random_string N/A classmethod setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ObjectVersioningTest self setUp N/A 
        Create a container for "current" object storage
         N/A N/A self current_version_container_name N/A N/A self create_temp_container N/A N/A current_container_{0} format N/A self container_name N/A 
        Create a container for "non-current" object storage
         N/A N/A self non_current_version_container_name N/A N/A self create_temp_container N/A N/A non_current_container_{0} format N/A self container_name N/A headers N/A X-Versions-Location N/A self non_current_version_container_name N/A N/A N/A N/A self client set_container_metadata N/A self current_version_container_name headers headers N/A N/A self num_objects 4 N/A N/A self num_versioned_objects N/A N/A self num_objects 1 N/A N/A self object_data_version0 N/A N/A {0}0 format BASE_DATA N/A N/A self object_data_version1 N/A N/A {0}1 format BASE_DATA N/A N/A self object_data_version2 N/A N/A {0}2 format BASE_DATA N/A N/A self object_data_version3 N/A N/A {0}3 format BASE_DATA N/A 
        create objects in the current version container
         N/A i N/A range 0 N/A self num_objects N/A N/A data N/A eval N/A N/A self.object_data_version{0} format i N/A headers N/A X-Object-Meta-Version Content-Length Content-Type data N/A str N/A len data CONTENT_TYPE_TEXT N/A N/A N/A N/A self client create_object N/A self current_version_container_name N/A self object_name headers headers data N/A eval N/A N/A self.object_data_version{0} format i N/A get_prefix N/A N/A self obj_name N/A N/A N/A 
        Naming Schema: Non-current versions are assigned the name
        <length><object_name>/<timestamp>, where length is the 3-character
        zero-padded hexadecimal character length of the <object_name>
         N/A prefix None N/A padded_hex None N/A temp N/A N/A N/A N/A str N/A hex N/A len obj_name split x N/A 1 N/A N/A N/A len temp 1 N/A N/A padded_hex N/A N/A 00{0} format temp N/A N/A N/A N/A len temp 2 N/A N/A padded_hex N/A N/A 0{0} format temp N/A N/A padded_hex temp N/A prefix N/A N/A {0}{1} format padded_hex obj_name N/A prefix N/A test_versioned_obj_creation_with_valid_data N/A N/A self N/A N/A N/A 
        check the current version object content
         N/A response N/A N/A N/A self client get_object N/A self current_version_container_name N/A self object_name N/A expected N/A self object_data_version3 N/A received N/A response content N/A N/A N/A self assertEqual expected received msg N/A N/A retrieving current version of object expected content: {0} recieved content: {1} format expected received N/A 
        check the number of versioned objects
         N/A params N/A format json N/A response N/A N/A N/A self client list_objects N/A self non_current_version_container_name params params N/A resp_obj_count N/A N/A N/A response headers get x-container-object-count N/A expected N/A self num_versioned_objects N/A received N/A int resp_obj_count N/A N/A N/A self assertEqual expected received msg N/A N/A obj list on non-current version container expected: {0} objects. response contained: {1} objects format expected received N/A object_names N/A N/A obj name N/A obj N/A response entity N/A expected_prefix N/A N/A self get_prefix N/A self object_name N/A i N/A range 0 N/A self num_versioned_objects N/A N/A obj_name N/A object_names N/A i N/A 
            check for a slash in the name of the versioned object
             N/A tokens N/A N/A obj_name split / N/A expected 2 N/A received N/A len tokens N/A N/A N/A self assertEqual expected received msg slash is present in the versioned object name N/A 
            check the prefix of the versioned object
             N/A current_name_prefix N/A tokens N/A 0 N/A expected expected_prefix N/A received current_name_prefix N/A N/A N/A self assertEqual expected received msg N/A N/A versioned object prefix expected: {0} recieved: {1} format expected received N/A 
            check the content of the versioned object
             N/A response N/A N/A N/A self client get_object N/A self non_current_version_container_name obj_name N/A expected N/A eval N/A N/A self.object_data_version{0} format i N/A received N/A response content N/A N/A N/A self assertEqual expected received msg N/A N/A retrieving current version of object expected content: {0} recieved content: {1} format expected received N/A 
            check the X-Object-Meta-Version value of the versioned obj
             N/A expected N/A eval N/A N/A self.object_data_version{0} format i N/A received N/A N/A N/A response headers get X-Object-Meta-Version N/A N/A N/A self assertEqual expected received msg N/A N/A versioned object metadata expected X-Object-Meta-Version: {0} recieved X-Object-Meta-Version: {1} format expected received N/A 
        update current version metadata
         N/A headers N/A X-Object-Meta-Foo Bar N/A response N/A N/A N/A self client set_object_metadata N/A self current_version_container_name N/A self object_name headers headers N/A N/A N/A self assertTrue N/A response ok msg current obj metadata update was successful N/A 
        check the number of versioned objects
         N/A response N/A N/A N/A self client list_objects N/A self non_current_version_container_name params params N/A resp_obj_count N/A N/A N/A response headers get x-container-object-count N/A expected N/A self num_versioned_objects N/A received N/A int resp_obj_count N/A N/A N/A self assertEqual expected received msg N/A N/A obj list on non-current version container after metadata update on current version obj expected: {0} objects. response contained: {1} objects format expected received N/A N/A N/A ObjectStorageFixture required_features object_versioning test_versioned_obj_deletion_with_valid_data N/A N/A self N/A N/A N/A num_deletes 0 N/A i N/A reversed N/A range 0 N/A self num_versioned_objects N/A N/A N/A N/A N/A self client delete_object N/A self current_version_container_name N/A self object_name N/A 
            check that the obj data in the current version container is the
            previous version after deleting current obj
             N/A response N/A N/A N/A self client get_object N/A self current_version_container_name N/A self object_name N/A expected N/A eval N/A N/A self.object_data_version{0} format i N/A received N/A response content N/A N/A N/A self assertEqual expected received msg N/A N/A retrieving current version of object expected content: {0} recieved content: {1} format expected received N/A 
            check the X-Object-Meta-Version value of the previous obj after
            deleting the current obj
             N/A expected N/A eval N/A N/A self.object_data_version{0} format i N/A received N/A N/A N/A response headers get X-Object-Meta-Version N/A N/A N/A self assertEqual expected received msg N/A N/A current version object metadata expected content: {0} recieved content: {1} format expected received N/A 
            check the number of objects in the current container
             N/A response N/A N/A N/A self client list_objects N/A self current_version_container_name N/A resp_obj_count N/A N/A N/A response headers get x-container-object-count N/A expected 1 N/A received N/A int resp_obj_count N/A N/A N/A self assertEqual expected received msg N/A N/A obj list on current version container after delete expected: {0} object. response contained: {1} object(s) format expected received N/A num_deletes 1 N/A 
        check the number of versioned objects in the non-current container
         N/A response N/A N/A N/A self client list_objects N/A self non_current_version_container_name N/A resp_obj_count N/A N/A N/A response headers get x-container-object-count N/A expected N/A N/A self num_versioned_objects num_deletes N/A received N/A int resp_obj_count N/A N/A N/A self assertEqual expected received msg N/A N/A obj list on non-current version container expected: {0} objects. response contained: {1} objects format expected received N/A 
        check the number of objects in the current container after final delete
         N/A N/A N/A N/A self client delete_object N/A self current_version_container_name N/A self object_name N/A response N/A N/A N/A self client list_objects N/A self non_current_version_container_name N/A resp_obj_count N/A N/A N/A response headers get x-container-object-count N/A expected 0 N/A received N/A int resp_obj_count N/A N/A N/A self assertEqual expected received msg N/A N/A obj list on current version container after final delete expected: {0} objects. response contained: {1} objects format expected received N/A N/A N/A ObjectStorageFixture required_features object_versioning test_disable_object_versioning N/A N/A self N/A N/A N/A object_data_version4 N/A N/A {0}4 format BASE_DATA N/A 
        check the number of versioned objects
         N/A response N/A N/A N/A self client list_objects N/A self non_current_version_container_name N/A resp_obj_count N/A N/A N/A response headers get x-container-object-count N/A expected N/A self num_versioned_objects N/A received N/A int resp_obj_count N/A N/A N/A self assertEqual expected received msg N/A N/A obj list on non-current version container expected: {0} objects. response contained: {1} objects format expected received N/A 
        disable obj versioning and create a new obj in the current version
        container
         N/A headers N/A X-Versions-Location N/A response N/A N/A N/A self client set_container_metadata N/A self current_version_container_name headers headers N/A N/A N/A self assertTrue N/A response ok msg disabeling versioning was successful N/A headers N/A X-Object-Meta-Version Content-Length Content-Type object_data_version4 N/A str N/A len object_data_version4 CONTENT_TYPE_TEXT N/A response N/A N/A N/A self client create_object N/A self current_version_container_name N/A self object_name headers headers data object_data_version4 N/A N/A N/A self assertTrue N/A response ok msg obj creation after disabeling versioning was successful N/A 
        check the number of versioned objects
         N/A response N/A N/A N/A self client list_objects N/A self non_current_version_container_name N/A resp_obj_count N/A N/A N/A response headers get x-container-object-count N/A expected N/A self num_versioned_objects N/A received N/A int resp_obj_count N/A N/A N/A self assertEqual expected received msg N/A N/A obj list on non-current version container after disabeling versioning expected: {0} objects. response contained: {1} objects format expected received N/A N/A N/A ObjectStorageFixture required_features object_versioning N/A