From 54431b8542d3078faa44d08b99970fc82c0243b9 Mon Sep 17 00:00:00 2001 From: Max Wilhelm Date: Thu, 3 Dec 2015 19:28:53 +0100 Subject: [PATCH] added fluentd_install_spec.rb --- spec/classes/fluentd_install_spec.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 spec/classes/fluentd_install_spec.rb diff --git a/spec/classes/fluentd_install_spec.rb b/spec/classes/fluentd_install_spec.rb new file mode 100644 index 0000000..bd7044e --- /dev/null +++ b/spec/classes/fluentd_install_spec.rb @@ -0,0 +1,22 @@ +require 'spec_helper' + +describe 'fluentd::install', :type => :class do + let(:facts) { + { + :osfamily => 'Debian', + :lsbdistid => 'Ubuntu', + :operatingsystem => 'Ubuntu', + :lsbdistcodename => 'precise', + } + } + + describe 'when called with no parameters on Ubuntu' do + it { + should contain_package('fluentd').with({ + 'ensure' => 'installed', + 'name' => 'td-agent', + 'install_options' => [] + }) + } + end +end