Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'spec_helper'
- %w(ansible
- ca-certificates
- curl
- python-lockfile
- python-pip
- python-setuptools
- software-properties-common
- unzip
- wget).each do |p|
- describe package(p) do
- it { should be_installed }
- end
- end
- describe command('pip list') do
- its(:stdout) { should match 's3cmd' }
- end
- describe file('/usr/local/bin/cfn-signal') do
- it { should be_executable }
- end
- describe file('/usr/local/bin/aws') do
- it { should be_executable }
- end
- describe file('/tmp/awscli-bundle*') do
- it { should_not exist }
- end
- describe ppa('ansible/ansible') do
- it { should be_enabled }
- end
- describe package('ansible') do
- it { should be_installed.with_version('2.0.0.2-2') }
- end
- describe file('/etc/ansible/inventory') do
- it { should be_a_directory }
- end
- describe file('/etc/ansible/inventory/hostgroup.py') do
- it { should be_executable }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement