Skip to content

Commit

Permalink
Merge pull request #63 from traylenator/eight
Browse files Browse the repository at this point in the history
Enable acceptance tests for CentOS 8
  • Loading branch information
traylenator authored Jan 9, 2020
2 parents 32f7559 + 4043509 commit de8bcfd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
docker_sets:
- set: centos6-64
- set: centos7-64
- set: centos8-64
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ matrix:
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=centos7-64 BEAKER_HYPERVISOR=docker CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=centos8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
services: docker
branches:
only:
- master
Expand Down
7 changes: 6 additions & 1 deletion spec/acceptance/fetchcrl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
shell('ls /etc/grid-security/certificates/*.r0', acceptable_exit_codes: 0)
end
describe file('/etc/cron.d/fetch-crl') do
its(:content) { is_expected.to match %r{^([0-9]|[1-5][0-9]) [0-5]-23/6 \* \* \*.*$} }
case fact('operatingsystemmajrelease')
when '6', '7'
its(:content) { is_expected.to match %r{^([0-9]|[1-5][0-9]) [0-5]-23/6 \* \* \*.*$} }
else
it { is_expected.not_to exist }
end
end
end
end

0 comments on commit de8bcfd

Please sign in to comment.