mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 13:20:35 +00:00
use rspec-puppet-facts for plugin_spec
This commit is contained in:
parent
5f213da8b3
commit
613a28ccaf
@ -1,18 +1,15 @@
|
|||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'fluentd::plugin' do
|
describe 'fluentd::plugin' 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 'gem plugin' do
|
describe 'gem plugin' do
|
||||||
let(:title) { 'fluent-plugin-elasticsearch' }
|
let(:title) { 'fluent-plugin-elasticsearch' }
|
||||||
let(:params) do
|
let(:params) do
|
||||||
{
|
{
|
||||||
@ -29,7 +26,7 @@ describe 'fluentd::plugin' do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'file plugin' do
|
describe 'file plugin' do
|
||||||
let(:title) { 'fluent-plugin-test' }
|
let(:title) { 'fluent-plugin-test' }
|
||||||
let(:params) do
|
let(:params) do
|
||||||
{
|
{
|
||||||
@ -49,4 +46,6 @@ describe 'fluentd::plugin' do
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user