Module Expr Str Import alias ImportFrom alias ImportFrom alias alias alias identifier ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp CompareEq AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str decorator_list Call NameLoad keyword Str keyword Str decorator_list Call AttributeLoad NameLoad attr CompareIn NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list NameLoad 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.
 N/A unittest cafe.drivers.unittest.decorators tags cloudcafe.compute.common.types ComputeHypervisors InstanceAuthStrategies NovaServerStatusTypes ServerStates cloudcafe.compute.config ComputeConfig cloudroast.compute.fixtures ServerFromImageFixture N/A compute_config N/A ComputeConfig N/A hypervisor N/A N/A N/A compute_config hypervisor lower ChangeServerPasswordTests N/A object N/A test_change_password_response N/A N/A self N/A N/A N/A 
        The status code for a change password request should be 202

        Validate that the response for the change password request in the
        setup has a status code of 202.

        The following assertions occur:
            - The change password response status code is equal to 202
         N/A N/A N/A self assertEqual 202 N/A N/A self resp status_code N/A N/A tags type smoke net no test_can_log_in_with_new_password N/A N/A self N/A N/A N/A 
        The admin user should be able to log in with the new password

        As the test user get the details of the server created during test set
        up. Using the new_password value set during setup and the public IP
        address of the server get a remote instance client for the server.
        Validate that the remote client can authenticate to the server.

        The following assertions occur:
            - The attempt to authenticate to the server is successful
         N/A server N/A N/A N/A N/A self servers_client get_server N/A N/A self server id entity N/A N/A server admin_pass N/A self new_password N/A public_address N/A N/A N/A self server_behaviors get_public_ip_address server N/A remote_client N/A N/A N/A self server_behaviors get_remote_instance_client server config N/A self servers_config auth_strategy N/A InstanceAuthStrategies PASSWORD N/A N/A N/A self assertTrue N/A N/A remote_client can_authenticate N/A Could not connect to server (%s) using new admin password %s N/A public_address N/A self new_password N/A N/A tags type smoke net yes test_password_changed_server_instance_actions N/A N/A self N/A N/A N/A 
        Verify the correct actions are logged during a password change.

        Get the list of all actions that the server has taken from the Nova API.
        Filter the list so that only the actions 'changePassword' remain.
        Validate that the list of filtered actions has a length of 1 (that only
        1 changePassword action has been performed.) Validate that the values of
        the identified changePassword action match the values returned in the
        change password response received during test setup.

        The following assertions occur:
            - The list of actions that match 'changePassword' has only one item
            - The values for the changePassword action match the values received
              in response to the change password request
         N/A actions N/A N/A N/A N/A self servers_client get_instance_actions N/A N/A self server id entity N/A N/A N/A self assertTrue N/A any N/A N/A N/A a action changePassword N/A a actions N/A filtered_actions N/A a N/A a actions N/A N/A a action changePassword N/A N/A N/A self assertEquals N/A len filtered_actions 1 N/A password_action N/A filtered_actions N/A 0 N/A N/A N/A self validate_instance_action password_action N/A N/A self server id N/A N/A N/A self compute user user_id N/A N/A N/A self compute user project_id N/A N/A N/A self resp headers N/A x-compute-request-id N/A N/A tags type smoke net no N/A N/A N/A unittest skipIf N/A hypervisor N/A N/A ComputeHypervisors KVM N/A ComputeHypervisors QEMU N/A ComputeHypervisors IRONIC N/A ComputeHypervisors LXC_LIBVIRT Change password not supported in current configuration. ChangePasswordBaseFixture N/A object N/A change_password N/A N/A self N/A N/A N/A 
        Change password and wait for server to return to active state

        Change the password to a server to 'newslice129690TuG72Bgj2' and then
        wait for the server to return to state 'ACTIVE'.
         N/A N/A self new_password newslice129690TuG72Bgj2 N/A N/A self resp N/A N/A N/A self servers_client change_password N/A N/A self server id N/A self new_password N/A N/A N/A N/A self server_behaviors wait_for_server_status N/A N/A self server id N/A ServerStates ACTIVE N/A classmethod N/A ServerFromImageChangePasswordTests N/A ServerFromImageFixture ChangeServerPasswordTests ChangePasswordBaseFixture 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 this setup:
            - A server with values from the test configuration

        The following actions are performed during this setup:
            - The password to the server is changed to "newslice129690TuG72Bgj2"
              using the 'change_password' method in the
              ChangePasswordBaseFixture class
         N/A N/A N/A N/A super ServerFromImageChangePasswordTests cls setUpClass N/A N/A N/A cls create_server N/A N/A N/A cls change_password N/A classmethod N/A