Skip to content

Commit

Permalink
Added more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-robertson committed Jun 14, 2024
1 parent 520e798 commit 61cee70
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion spec/acceptance/observium_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class { 'observium':
end

describe cron do
it { should have_entry('*/5 * * * * /opt/observium/discovery.php -h all >> /dev/null 2>&1').with_user('root') }
it { should have_entry('33 */6 * * * /opt/observium/discovery.php -h all >> /dev/null 2>&1').with_user('root') }
end

# Red hat specifc checks
Expand All @@ -51,6 +51,22 @@ class { 'observium':
it { is_expected.to be_running }
end

describe package('python3-PyMySQL') do
it { should be_installed }
end

describe selinux do
it { should be_permissive }
end

describe yumrepo('opennms-common') do
it { should exist }
end

describe yumrepo('epel') do
it { should exist }
end

elsif os[:family] == 'ubuntu'

describe service('apache2') do
Expand Down

0 comments on commit 61cee70

Please sign in to comment.