Skip to content

Commit

Permalink
test(alma+rocky): add platforms (based on CentOS 8) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Jun 30, 2021
1 parent 981d59f commit 961ab46
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions test/integration/default/controls/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

config = '/etc/collectd/collectd.conf'

# Override by OS
case os[:name]
when 'redhat', 'fedora', 'centos', 'opensuse', 'oracle'
# Override by platform
case platform[:family]
when 'redhat', 'fedora', 'suse'
config = '/etc/collectd.conf'
when 'freebsd'
when 'bsd'
config = '/usr/local/etc/collectd.conf'
end

Expand Down
8 changes: 4 additions & 4 deletions test/integration/default/controls/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

pkg = 'collectd-core'

# Override by OS
case os[:name]
when 'redhat', 'centos', 'fedora', 'opensuse', 'oracle'
# Override by platform
case platform[:family]
when 'redhat', 'fedora', 'suse'
pkg = 'collectd'
when 'freebsd'
when 'bsd'
pkg = 'collectd5'
end

Expand Down
1 change: 1 addition & 0 deletions test/integration/default/controls/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
title 'should be running and enabled'

describe service('collectd') do
it { should be_installed }
it { should be_enabled }
it { should be_running }
end
Expand Down

0 comments on commit 961ab46

Please sign in to comment.