Skip to content

Commit

Permalink
Update litmus tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ssm committed Jun 29, 2020
1 parent 9ed32c0 commit 08ed3ed
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
8 changes: 7 additions & 1 deletion provision.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---
default:
provisioner: docker
images: ['litmusimage/debian:9']
images: ['litmusimage/debian:9', 'litmusimage/centos:8']
travis_deb:
provisioner: docker
images: ['litmusimage/debian:8', 'litmusimage/debian:9','litmusimage/ubuntu:18.04', 'litmusimage/ubuntu:20.04']
travis_el:
provisioner: docker
images: ['litmusimage/centos:7', 'litmusimage/centos:8']
15 changes: 15 additions & 0 deletions spec/acceptance/master_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
let(:pp) do
<<-MANIFEST
if $facts['os']['family'] == 'RedHat' {
if $facts['os']['release']['major'] == '8' {
yumrepo { 'PowerTools':
enabled => '1',
before => Class['munin::master'],
}
yumrepo { 'AppStream':
enabled => '1',
before => Class['munin::master'],
}
}
package { 'epel-release':
ensure => present,
before => Class['munin::master'],
Expand All @@ -26,4 +36,9 @@
describe package('munin') do
it { is_expected.to be_installed }
end

describe file ('/etc/munin/munin-conf.d/node.localhost.conf') do
it { should exist }
its(:content) { should match %r{munin://localhost} }
end
end
10 changes: 10 additions & 0 deletions spec/acceptance/node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
let(:pp) do
<<-MANIFEST
if $facts['os']['family'] == 'RedHat' {
if $facts['os']['release']['major'] == '8' {
yumrepo { 'PowerTools':
enabled => '1',
before => Class['munin::node'],
}
yumrepo { 'AppStream':
enabled => '1',
before => Class['munin::node'],
}
}
package { 'epel-release':
ensure => present,
before => Class['munin::node'],
Expand Down

0 comments on commit 08ed3ed

Please sign in to comment.