@pytest.mark.usefixtures('mocked_aws_cf_simple')
def test_aws_cf_simple_make_key(capsys, tmpdir):
 config = '\n---\nthis_is_a_temporary_config_format_do_not_put_in_production: yes_i_agree\ntype: cloudformation\ntemplate_url: http://us-west-2.amazonaws.com/downloads\nstack_name: foobar\nprovider_info:\n  region: us-west-2\n  access_key_id: asdf09iasdf3m19238jowsfn\n  secret_access_key: asdf0asafawwa3j8ajn\nssh_info:\n  user: core\nparameters:\n  - ParameterKey: AdminLocation\n    ParameterValue: 0.0.0.0/0\n  - ParameterKey: PublicSlaveInstanceCount\n    ParameterValue: 1\n  - ParameterKey: SlaveInstanceCount\n    ParameterValue: 5\n'
 (info, desc) = check_success(capsys, tmpdir, config)
 assert (info['type'] == 'cloudformation')
 assert ('stack_name' in info)
 assert ('region' in info['provider'])
 assert ('access_key_id' in info['provider'])
 assert ('secret_access_key' in info['provider'])
 assert (info['ssh']['key_name'] == 'foobar')
 assert (info['ssh']['delete_with_stack'] is True)
 assert (info['ssh']['private_key'] == MOCK_SSH_KEY_DATA)
 assert (info['ssh']['user'] == 'core')
 assert ('stack_name' in desc)

@ pytest . mark . usefixtures ( 'mocked_aws_cf_simple' ) def test_aws_cf_simple_make_key ( capsys , tmpdir ) : config = '\n---\nthis_is_a_temporary_config_format_do_not_put_in_production: yes_i_agree\ntype: cloudformation\ntemplate_url: http://us-west-2.amazonaws.com/downloads\nstack_name: foobar\nprovider_info:\n  region: us-west-2\n  access_key_id: asdf09iasdf3m19238jowsfn\n  secret_access_key: asdf0asafawwa3j8ajn\nssh_info:\n  user: core\nparameters:\n  - ParameterKey: AdminLocation\n    ParameterValue: 0.0.0.0/0\n  - ParameterKey: PublicSlaveInstanceCount\n    ParameterValue: 1\n  - ParameterKey: SlaveInstanceCount\n    ParameterValue: 5\n' ( info , desc ) = check_success ( capsys , tmpdir , config ) assert ( info [ 'type' ] == 'cloudformation' ) assert ( 'stack_name' in info ) assert ( 'region' in info [ 'provider' ] ) assert ( 'access_key_id' in info [ 'provider' ] ) assert ( 'secret_access_key' in info [ 'provider' ] ) assert ( info [ 'ssh' ] [ 'key_name' ] == 'foobar' ) assert ( info [ 'ssh' ] [ 'delete_with_stack' ] is True ) assert ( info [ 'ssh' ] [ 'private_key' ] == MOCK_SSH_KEY_DATA ) assert ( info [ 'ssh' ] [ 'user' ] == 'core' ) assert ( 'stack_name' in desc )
same mocked backend as other aws_cf_simple tests .