Files
ansible-telegraf/test/integration/default/serverspec/localhost/ansible_telegraf_spec.rb
Werner Dijkerman 4bd9a85f94 Updated the urls
2016-02-06 16:06:40 +01:00

28 lines
651 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