mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-14 14:00:36 +00:00
21 lines
578 B
Ruby
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
|