1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-10 04:50:34 +00:00

use rspec-puppet-facts for match_spec

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

View File

@ -1,18 +1,15 @@
require 'spec_helper' require 'spec_helper'
describe 'fluentd::match' do describe 'fluentd::match' 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 match' do describe 'basic match' do
let(:title) { 'test' } let(:title) { 'test' }
let(:params) do let(:params) do
{ {
@ -40,7 +37,7 @@ describe 'fluentd::match' do
end end
end end
context 'multiple store' do describe 'multiple store' do
let(:title) { 'test' } let(:title) { 'test' }
let(:params) do let(:params) do
{ {
@ -70,3 +67,5 @@ describe 'fluentd::match' do
end end
end end
end end
end
end