Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign NameStore IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BoolOpAnd NameLoad CompareNotIn NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str decorator_list Call NameLoad keyword Str keyword Str decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str
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.
 N/A unittest cafe.drivers.unittest.decorators tags cloudcafe.common.tools.datagen rand_name cloudcafe.compute.common.types ComputeHypervisors NovaServerStatusTypes cloudcafe.compute.config ComputeConfig cloudcafe.compute.flavors_api.config FlavorsConfig cloudroast.compute.fixtures ServerFromImageFixture N/A compute_config N/A ComputeConfig N/A hypervisor N/A N/A N/A compute_config hypervisor lower N/A flavors_config N/A FlavorsConfig N/A resize_up_enabled N/A N/A N/A flavors_config resize_up_enabled None N/A flavors_config resize_up_enabled N/A flavors_config resize_enabled N/A can_resize N/A resize_up_enabled N/A hypervisor N/A N/A ComputeHypervisors IRONIC N/A ComputeHypervisors LXC_LIBVIRT ResizeServerDataIntegrityTests N/A object N/A test_active_file_inject_during_resize N/A N/A self N/A N/A N/A 
        Injecting a file during a resize should be successful.

        Resize a server and wait until it enters task state 'resize_migrating'.
        Get a remote instance client for the server and use it to inject a file
        with the name 'tst.txt', the contents 'content' and the file path
        found in the test configuration. Confirm the resize by waiting for it
        to reach status 'VERIFY_RESIZE'. Wait for the server to enter 'ACTIVE'
        state. Get a remote client for the server, validate that the file
        injected during resize exists on the server and has the correct
        contents.

        The following assertions occur:
            - The file injected while the server was resizing is found on the
              server and has the expected contents.
         N/A server_to_resize N/A self server N/A N/A self resize_resp N/A N/A N/A self servers_client resize N/A server_to_resize id N/A self flavor_ref_alt N/A N/A N/A N/A self server_behaviors wait_for_server_task_state N/A N/A self server id resize_migrating N/A N/A self servers_config server_build_timeout N/A remote_client N/A N/A N/A self server_behaviors get_remote_instance_client N/A self server N/A self servers_config key N/A N/A self key private_key N/A prototype_file N/A N/A N/A remote_client create_file file_name tst.txt file_content content file_path N/A N/A self servers_config default_file_path content N/A N/A N/A N/A self server_behaviors wait_for_server_status N/A server_to_resize id N/A NovaServerStatusTypes VERIFY_RESIZE N/A N/A self confirm_resize_resp N/A N/A N/A self servers_client confirm_resize N/A server_to_resize id N/A N/A N/A N/A self server_behaviors wait_for_server_status N/A server_to_resize id N/A NovaServerStatusTypes ACTIVE N/A remote_client N/A N/A N/A self server_behaviors get_remote_instance_client N/A self server N/A self servers_config key N/A N/A self key private_key N/A file N/A N/A N/A remote_client get_file_details file_path N/A N/A {0}/tst.txt format N/A N/A self servers_config default_file_path content N/A N/A N/A self assertEqual prototype_file file msg File does not match prototype one N/A N/A tags type smoke net yes N/A ServerFromImageResizeServerUpConfirmTests N/A ServerFromImageFixture ResizeServerDataIntegrityTests N/A setUpClass N/A N/A cls N/A N/A N/A 
        Perform actions that set up the necessary resources for testing

        The following resources are created during this set up:
            - A keypair with a random name starting with 'key'
            - A server with the following settings:
                - The keypair previously created
                - Remaining values required for creating a server will come
                  from test configuration.
         N/A N/A N/A N/A super ServerFromImageResizeServerUpConfirmTests cls setUpClass N/A N/A cls key N/A N/A N/A N/A cls keypairs_client create_keypair N/A rand_name key entity N/A N/A N/A N/A cls resources add N/A N/A cls key name N/A N/A cls keypairs_client delete_keypair N/A N/A N/A cls create_server key_name N/A N/A cls key name N/A classmethod N/A N/A N/A unittest skipUnless can_resize Resize not enabled due to the flavor class or hypervisor.