diff options
| author | mo khan <mo@mokhan.ca> | 2015-05-03 21:17:13 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-05-03 21:17:13 -0600 |
| commit | 5b92b27a1cb40e44832c02c62ca10b08aa79fa70 (patch) | |
| tree | 3215fab85c4428e33e232016ca4ba12338fdca3d /spec | |
| parent | f5ece2894e9a3d17cdc690a06c2f46ed8a105020 (diff) | |
add aws recipe and fix foodcritic violations.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/aws_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/aws_spec.rb b/spec/aws_spec.rb new file mode 100644 index 0000000..80d4fbb --- /dev/null +++ b/spec/aws_spec.rb @@ -0,0 +1,25 @@ +describe "mokhan-myface::aws" do + subject do + ChefSpec::SoloRunner.new do |node| + node.set['aws']['username'] = username + end.converge(described_recipe) + end + + let(:username) { FFaker::Internet.user_name } + + it 'installs python-ip' do + expect(subject).to install_package('python-pip') + end + + it 'installs awscli' do + expect(subject).to run_execute('pip install awscli') + end + + it 'installs the config file' do + expect(subject).to create_template("/home/#{username}/.aws/config") + end + + it 'installs the credentials file' do + expect(subject).to create_template("/home/#{username}/.aws/credentials") + end +end |
