mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 05:10:36 +00:00
use rspec-puppet-facts for match_spec
This commit is contained in:
parent
258a37ff11
commit
5f213da8b3
@ -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
|
||||
{
|
||||
@ -69,4 +66,6 @@ describe 'fluentd::match' do
|
||||
with_content(IO.read(File.join(File.dirname(__FILE__), '../fixtures/files/match_copy.conf')))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user