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

use rspec-puppet-facts for source_spec

This commit is contained in:
Max Wilhelm 2017-08-17 13:34:13 +02:00
parent 613a28ccaf
commit fc0f3fdf88

View File

@ -1,18 +1,15 @@
require 'spec_helper'
describe 'fluentd::source' 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 source' do
describe 'basic source' do
let(:title) { 'test' }
let(:params) do
{
@ -32,3 +29,5 @@ describe 'fluentd::source' do
end
end
end
end
end