1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-09 20: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'
describe 'fluentd::match' 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 match' do
describe 'basic match' do
let(:title) { 'test' }
let(:params) do
{
@ -40,7 +37,7 @@ describe 'fluentd::match' do
end
end
context 'multiple store' do
describe 'multiple store' do
let(:title) { 'test' }
let(:params) do
{
@ -70,3 +67,5 @@ describe 'fluentd::match' do
end
end
end
end
end