ansible-role-go_programs/test/integration/default/serverspec/default_spec.rb

20 lines
408 B
Ruby
Raw Normal View History

2019-01-28 22:05:58 +00:00
require 'serverspec'
set :backend, :exec
puts
puts '================================'
puts %x(ansible --version)
puts '================================'
describe package('golang-1.11') do
it { should be_installed }
end
describe file('/usr/local/bin/sensu-email-handler') do
it { should exist }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
it { should be_mode 755 }
end