Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad 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 Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword 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 Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Str decorator_list Call NameLoad keyword Str keyword 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.
 N/A base64 cafe.drivers.unittest.decorators tags cloudcafe.common.tools.datagen rand_name cloudroast.compute.fixtures ComputeFixture CloudInitConfigTest N/A ComputeFixture 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:
            - Creates a keypair.
            - Creates an active server.
         N/A N/A N/A N/A super CloudInitConfigTest cls setUpClass N/A init_st N/A N/A N/A cls config_drive_behaviors read_cloud_init_for_config_drive N/A N/A cls cloud_init_config cloud_config_format_script N/A N/A cls user_data_contents init_st N/A user_data N/A N/A base64 b64encode N/A cls user_data_contents 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 cls server_response N/A N/A N/A cls server_behaviors create_active_server config_drive True key_name N/A N/A cls key name user_data user_data N/A N/A cls server N/A N/A cls server_response entity N/A N/A cls user_data_filepath N/A N/A {0}/openstack/latest/user_data format N/A N/A cls config_drive_config base_path_to_mount N/A N/A N/A N/A cls resources add N/A N/A cls server id N/A N/A cls servers_client delete_server N/A classmethod test_cloud_config_input_format N/A N/A self N/A N/A N/A 
        Verify the Cloud Config Input Format is working as expected.

        Will mount the config drive and then get the remote instance to be
        able to get the file details.  After verifying the contents of the
        file are as expected, verify that status of manage etc hosts is true
        and that the hosts file was configured with a pre defined node.

        The following assertions occur:
            - 200 status code response from the create server call.
            - Content of the user data file retrieved is the same as set in
                setup.
            - Status of manage etc hosts call is True.
            - The expected node is in the /etc/hosts file.
         N/A message Expected {0} to be {1}, was {2}. N/A N/A N/A N/A self config_drive_behaviors mount_config_drive server N/A self server servers_config N/A self servers_config key N/A N/A self key private_key source_path N/A N/A self config_drive_config mount_source_path destination_path N/A N/A self config_drive_config base_path_to_mount 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 instanse_user_data N/A N/A remote_client get_file_details N/A self user_data_filepath N/A N/A N/A self assertEqual N/A instanse_user_data content N/A self user_data_contents msg N/A N/A message format Configuration do not match N/A instanse_user_data content N/A self user_data_contents N/A dir_cloud_config_present N/A N/A N/A self config_drive_behaviors status_of_manage_etc_hosts server N/A self server servers_config N/A self servers_config key N/A N/A self key private_key N/A N/A N/A self assertTrue dir_cloud_config_present msg Managed etc hosts was enabled from script N/A hosts N/A N/A N/A remote_client get_file_details /etc/hosts content N/A N/A N/A self assertIn mynode hosts msg Managed etc hosts was enabled from script N/A N/A tags type smoke net yes N/A