From e97f9e38d11c9fc59fac668aa8b2e25e21a0c730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Can=C3=A9vet?= Date: Tue, 8 Apr 2014 16:23:58 +0200 Subject: [PATCH] Add unit tests for puppetdb::master::config --- spec/unit/classes/master/config_spec.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 spec/unit/classes/master/config_spec.rb diff --git a/spec/unit/classes/master/config_spec.rb b/spec/unit/classes/master/config_spec.rb new file mode 100644 index 0000000..302af37 --- /dev/null +++ b/spec/unit/classes/master/config_spec.rb @@ -0,0 +1,19 @@ +require 'spec_helper' + +describe 'puppetdb::master::config', :type => :class do + + let(:facts) do + { + :osfamily => 'Debian', + :operatingsystem => 'Debian', + :operatingsystemrelease => '6.0', + :kernel => 'Linux', + :concat_basedir => '/var/lib/puppet/concat', + } + end + + context 'when using default values' do + it { should compile.with_all_deps } + end + +end