1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-12-16 21:30:35 +00:00
puppet-fluentd/spec/acceptance/fluentd_spec.rb
2016-01-11 18:36:45 +01:00

21 lines
578 B
Ruby

require 'spec_helper_acceptance'
RSpec.describe 'fluentd' do
it 'runs successfully' do
manifest = File.read(File.expand_path('../../examples/init.pp', File.dirname(__FILE__)))
# Run it twice and test for idempotency
apply_manifest(manifest, catch_failures: true)
expect(apply_manifest(manifest, catch_failures: true).exit_code).to be_zero
end
describe package('td-agent') do
it { is_expected.to be_installed }
end
describe service('td-agent') do
it { is_expected.to be_enabled.with_level(3) }
it { is_expected.to be_running }
end
end