Files
ansible-telegraf/test/integration/default/serverspec/localhost/ansible_telegraf_spec.rb
Werner Dijkerman fe287f5d7c Fixes for serverspec
2016-02-06 15:58:43 +01:00

28 lines
649 B
Ruby

require 'serverspec'
require 'spec_helper'
describe 'Telegraf Packages' do
describe package('telegraf') do
it { should be_installed }
end
end
describe 'Telegraf Services' do
describe service('telegraf') do
it { should be_enabled }
end
end
describe 'Telegraf Configuration' do
describe file('/etc/telegraf/telegraf.conf') do
it { should be_file}
it { should be_owned_by 'root'}
it { should be_grouped_into 'root'}
it { should contain "[[inputs.cpu]]" }
it { should contain "[[inputs.mem]]" }
it { should contain "urls = \"http://localhost:8086\"" }
end
end