mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-09 20:50:34 +00:00
use rspec-puppet-facts for filter_spec
This commit is contained in:
parent
c2f95f4bc9
commit
258a37ff11
@ -1,18 +1,15 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe 'fluentd::filter' do
|
||||
let(:facts) {
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Ubuntu',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:lsbdistcodename => 'precise',
|
||||
:architecture => 'amd64',
|
||||
}
|
||||
}
|
||||
on_supported_os.each do |os, facts|
|
||||
context "on #{os}" do
|
||||
let :facts do
|
||||
facts
|
||||
end
|
||||
|
||||
let(:pre_condition) { 'include fluentd' }
|
||||
|
||||
context 'basic filter' do
|
||||
describe 'basic filter' do
|
||||
let(:title) { 'test' }
|
||||
let(:params) do
|
||||
{
|
||||
@ -32,4 +29,6 @@ describe 'fluentd::filter' do
|
||||
with_content(IO.read(File.join(File.dirname(__FILE__), '../fixtures/files/filter_record_transformer.conf')))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user