mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-10 04:50:34 +00:00
21 lines
564 B
Ruby
21 lines
564 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 }
|
|
it { is_expected.to be_running }
|
|
end
|
|
end
|