Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num keyword Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad keyword Str keyword Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num 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 Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list 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 Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list Call AttributeLoad NameLoad attr 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.clients.ping PingClient cloudcafe.compute.common.exceptions Forbidden cloudcafe.compute.common.types NovaServerRebootTypes cloudcafe.compute.common.types NovaServerStatusTypes ServerStates cloudcafe.compute.composites ComputeAdminComposite cloudroast.compute.fixtures ServerFromImageFixture SuspendServerTests N/A object N/A test_suspend_resume_server N/A N/A self N/A N/A N/A 
        Verify that a server can be suspended and then resumed.

        Will suspend the server and waits for the server state to be
        suspended followed by pinging the ip until it's unreachable.  Resumes
        the server and waits for the server state to be active followed
        by pinging the server until it's reachable. Then retrieve the instance.

        The following assertions occur:
            - 202 status code response from the stop server call.
            - 202 status code response from the start server call.
            - Get remote instance client returns true (successful connection).
         N/A N/A self ping_ip N/A N/A N/A N/A N/A self server addresses get_by_name N/A N/A self servers_config network_for_ssh ipv4 N/A response N/A N/A N/A self admin_servers_client suspend_server N/A N/A self server id N/A N/A N/A self assertEqual N/A response status_code 202 N/A N/A N/A N/A self admin_server_behaviors wait_for_server_status N/A N/A self server id N/A ServerStates SUSPENDED N/A N/A N/A PingClient ping_until_unreachable N/A self ping_ip timeout 60 interval_time 5 N/A response N/A N/A N/A self admin_servers_client resume_server N/A N/A self server id N/A N/A N/A self assertEqual N/A response status_code 202 N/A N/A N/A N/A self admin_server_behaviors wait_for_server_status N/A N/A self server id N/A ServerStates ACTIVE N/A N/A N/A PingClient ping_until_reachable N/A self ping_ip timeout 600 interval_time 5 N/A N/A N/A self assertTrue 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 N/A Unable to connect to active server {0} after suspending and resuming format N/A N/A self server id N/A N/A tags type smoke net yes test_suspend_delete_server N/A N/A self N/A N/A N/A 
        Verify that a server can be suspended and then deleted by the user.

        Will suspend the server and waits for the server state to be
        suspended followed by pinging the ip until it's unreachable.  Deletes
        the server as the user and the server was deleted successfully.

        The following assertions occur:
            - 202 status code response from the stop server call.
            - 204 status code response from the start server call.
            - Verify the server was deleted successfully.
         N/A N/A self ping_ip N/A N/A N/A N/A N/A self server addresses get_by_name N/A N/A self servers_config network_for_ssh ipv4 N/A response N/A N/A N/A self admin_servers_client suspend_server N/A N/A self server id N/A N/A N/A self assertEqual N/A response status_code 202 N/A N/A N/A N/A self admin_server_behaviors wait_for_server_status N/A N/A self server id N/A ServerStates SUSPENDED N/A N/A N/A PingClient ping_until_unreachable N/A self ping_ip timeout 60 interval_time 5 N/A delete_response N/A N/A N/A self servers_client delete_server N/A N/A self server id N/A N/A N/A self assertEqual N/A delete_response status_code 204 msg N/A N/A Delete server {0} failed with response code {1} format N/A N/A self server id N/A delete_response status_code N/A N/A N/A N/A self server_behaviors wait_for_server_to_be_deleted N/A N/A self server id N/A N/A tags type smoke net yes N/A NegativeSuspendServerTests N/A object N/A test_reboot_hard_suspended_server N/A N/A self N/A N/A N/A 
        Verify that a server reboot after suspend does not restore it.

        Will suspend the server and waits for the server state to be
        suspended followed by pinging the ip until it's unreachable.  Tries to
        reboot the server and expects a "Forbidden" exception to be raised.
        Then will ping until it's unreachable again.

        The following assertions occur:
            - 202 status code response from the stop server call.
            - 202 status code response from the start server call.
            - Get remote instance client returns true (successful connection).
         N/A N/A self ping_ip N/A N/A N/A N/A N/A self server addresses get_by_name N/A N/A self servers_config network_for_ssh ipv4 N/A response N/A N/A N/A self admin_servers_client suspend_server N/A N/A self server id N/A N/A N/A self assertEqual N/A response status_code 202 N/A N/A N/A N/A self admin_server_behaviors wait_for_server_status N/A N/A self server id N/A ServerStates SUSPENDED N/A N/A N/A PingClient ping_until_unreachable N/A self ping_ip timeout 60 interval_time 5 N/A N/A N/A self assertRaises Forbidden N/A N/A N/A N/A N/A self servers_client reboot N/A N/A self server id N/A NovaServerRebootTypes HARD N/A N/A N/A PingClient ping_until_unreachable N/A self ping_ip timeout 60 interval_time 5 N/A N/A tags type smoke net yes N/A ServerFromImageSuspendTests N/A ServerFromImageFixture SuspendServerTests N/A setUp N/A N/A self N/A N/A N/A 
        Perform actions that setup the necessary resources for testing.

        The following resources are created during the setup:
            - Create a server in active state.
         N/A N/A N/A N/A super ServerFromImageSuspendTests self setUp N/A N/A self compute_admin N/A ComputeAdminComposite N/A N/A self admin_servers_client N/A N/A N/A self compute_admin servers client N/A N/A self admin_server_behaviors N/A N/A N/A self compute_admin servers behaviors N/A key_resp N/A N/A N/A self keypairs_client create_keypair N/A rand_name key N/A N/A N/A key_resp status_code 200 N/A N/A N/A Exception N/A N/A Call to create keypair failed with status_code {0} format N/A key_resp status_code N/A N/A self key N/A key_resp entity N/A N/A N/A N/A self resources add N/A N/A self key name N/A N/A self keypairs_client delete_keypair N/A N/A self server N/A N/A N/A N/A self server_behaviors create_active_server key_name N/A N/A self key name entity N/A N/A N/A N/A self resources add N/A N/A self server id N/A N/A self servers_client delete_server N/A N/A ServerFromImageNegativeSuspendTests N/A ServerFromImageFixture NegativeSuspendServerTests N/A setUpClass N/A N/A cls N/A N/A N/A 
        Perform actions that setup the necessary resources for testing.

        The following resources are created during the setup:
            - Create a server in active state.
         N/A N/A N/A N/A super ServerFromImageNegativeSuspendTests cls setUpClass N/A N/A cls compute_admin N/A ComputeAdminComposite N/A N/A cls admin_servers_client N/A N/A N/A cls compute_admin servers client N/A N/A cls admin_server_behaviors N/A N/A N/A cls compute_admin servers behaviors N/A N/A N/A cls create_server N/A classmethod N/A N/A N/A unittest skip Failing due to RM11052.