1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-14 22:10:36 +00:00
puppet-fluentd/spec/acceptance/fluentd_spec.rb

21 lines
578 B
Ruby
Raw Normal View History

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