summaryrefslogtreecommitdiff
path: root/spec/classes/munin_host_spec.rb
diff options
context:
space:
mode:
authorTomas Barton <barton.tomas@gmail.com>2013-10-13 18:14:45 +0200
committerTomas Barton <barton.tomas@gmail.com>2013-10-13 18:14:45 +0200
commit342ea7aa15a54c33ec4a12cf10b7b1a0c9811dba (patch)
tree584a96ab49087874d83c3ad43df37eeb4fb9cf84 /spec/classes/munin_host_spec.rb
parentb729e3903ded13e07501fc9b55766d21de206ae8 (diff)
extended tests, first group should pass
Diffstat (limited to 'spec/classes/munin_host_spec.rb')
-rw-r--r--spec/classes/munin_host_spec.rb23
1 files changed, 15 insertions, 8 deletions
diff --git a/spec/classes/munin_host_spec.rb b/spec/classes/munin_host_spec.rb
index 2216cc5..ccfcee6 100644
--- a/spec/classes/munin_host_spec.rb
+++ b/spec/classes/munin_host_spec.rb
@@ -1,14 +1,21 @@
require 'spec_helper'
describe 'munin::host' do
- let :facts do
- {
- :operatingsystem => 'CentOS',
- :interfaces => 'lo,eth0',
- }
+ shared_examples 'debian-host' do |os, codename|
+ let(:facts) {{
+ :operatingsystem => os,
+ :osfamily => 'Debian',
+ :lsbdistcodename => codename,
+ :concat_basedir => '/var/lib/puppet/concat',
+ }}
+ it { should contain_package('munin') }
+ it { should contain_file('/etc/munin/munin.conf') }
end
- it 'should compile' do
- should include_class('munin::host')
- end
+# context 'on debian-like system' do
+# it_behaves_like 'debian-host', 'Debian', 'squeeze'
+# it_behaves_like 'debian', 'Debian', 'wheezy'
+# it_behaves_like 'debian', 'Ubuntu', 'precise'
+# end
+
end