1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-12-16 13:20:35 +00:00

use rspec-puppet-facts for filter_spec

This commit is contained in:
Max Wilhelm 2017-08-17 13:33:43 +02:00
parent c2f95f4bc9
commit 258a37ff11

View File

@ -1,18 +1,15 @@
require 'spec_helper' require 'spec_helper'
describe 'fluentd::filter' do describe 'fluentd::filter' do
let(:facts) { on_supported_os.each do |os, facts|
{ context "on #{os}" do
:osfamily => 'Debian', let :facts do
:lsbdistid => 'Ubuntu', facts
:operatingsystem => 'Ubuntu', end
:lsbdistcodename => 'precise',
:architecture => 'amd64',
}
}
let(:pre_condition) { 'include fluentd' } let(:pre_condition) { 'include fluentd' }
context 'basic filter' do describe 'basic filter' do
let(:title) { 'test' } let(:title) { 'test' }
let(:params) do let(:params) do
{ {
@ -33,3 +30,5 @@ describe 'fluentd::filter' do
end end
end end
end end
end
end