Skip to content

Commit

Permalink
(SIMP-10057) rsyslog Add Puppet 7 acceptance test (#127)
Browse files Browse the repository at this point in the history
* Add a Puppet 7 acceptance test
* Remove check for Puppet >=6 in .fixtures.yml
* Test with CentOS 8.4 via generic/centos8 box
* Fail acceptance tests if no examples are executed.
* Add keepalive settings to nodesets

[SIMP-9666] #comment pupmod-simp-rsyslog acceptance tests configured
SIMP-10057 #close
  • Loading branch information
lnemsick-simp authored Jul 6, 2021
1 parent 8ebfbb1 commit b004b09
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 12 deletions.
4 changes: 1 addition & 3 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
fixtures:
repositories:
auditd: https://github.com/simp/pupmod-simp-auditd.git
augeas_core:
repo: https://github.com/simp/pupmod-puppetlabs-augeas_core.git
puppet_version: ">= 6.0.0"
augeas_core: https://github.com/simp/pupmod-puppetlabs-augeas_core.git
augeasproviders_core: https://github.com/hercules-team/augeasproviders_core.git
augeasproviders_grub: https://github.com/hercules-team/augeasproviders_grub.git
compliance_markup: https://github.com/simp/pupmod-simp-compliance_markup.git
Expand Down
18 changes: 16 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ pup7.x-unit:
# Manually, we can see that failover is working, but all the messages
# don't make it to the failover server in a timely fashion, even if
# we force the rsyslog queues to be small.
#pup5.pe-failover:
# <<: *pup_5_pe
#pup6.pe-failover:
# <<: *pup_6_pe
# <<: *acceptance_base
# <<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_3
# script:
Expand Down Expand Up @@ -408,3 +408,17 @@ pup6.pe-oel-fips:
<<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_3
script:
- 'BEAKER_fips=yes bundle exec rake beaker:suites[default,oel]'

pup7.x:
<<: *pup_7_x
<<: *acceptance_base
script:
- 'bundle exec rake beaker:suites[default,default]'

pup7.x-doubleforward:
<<: *pup_7_x
<<: *acceptance_base
<<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_3
script:
- 'bundle exec rake beaker:suites[doubleforward,default]'

6 changes: 5 additions & 1 deletion spec/acceptance/nodesets/centos-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ HOSTS:
roles:
- server
platform: el-8-x86_64
box: centos/8
box: generic/centos8
hypervisor: <%= hypervisor %>
yum_repos:
chef-current:
Expand All @@ -56,6 +56,10 @@ CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
ssh:
keepalive: true
keepalive_interval: 10
keepalive_maxcount: 60
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
<% end -%>
10 changes: 7 additions & 3 deletions spec/acceptance/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ HOSTS:
- default
- client
platform: el-8-x86_64
box: centos/8
box: generic/centos8
hypervisor: <%= hypervisor %>
yum_repos:
chef-current:
Expand All @@ -22,7 +22,7 @@ HOSTS:
roles:
- server
platform: el-8-x86_64
box: centos/8
box: generic/centos8
hypervisor: <%= hypervisor %>
yum_repos:
chef-current:
Expand All @@ -44,7 +44,7 @@ HOSTS:
roles:
- failover_server
platform: el-8-x86_64
box: centos/8
box: generic/centos8
hypervisor: <%= hypervisor %>
yum_repos:
chef-current:
Expand All @@ -55,6 +55,10 @@ CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
ssh:
keepalive: true
keepalive_interval: 10
keepalive_maxcount: 60
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
<% end -%>
4 changes: 4 additions & 0 deletions spec/acceptance/nodesets/oel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
ssh:
keepalive: true
keepalive_interval: 10
keepalive_maxcount: 60
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
<% end -%>
4 changes: 4 additions & 0 deletions spec/acceptance/suites/doubleforward/nodesets/centos-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
ssh:
keepalive: true
keepalive_interval: 10
keepalive_maxcount: 60
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
10 changes: 7 additions & 3 deletions spec/acceptance/suites/doubleforward/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,28 @@ HOSTS:
- master
- client
platform: el-8-x86_64
box: centos/8
box: generic/centos8
hypervisor: <%= hypervisor %>
server-1:
roles:
- server
platform: el-8-x86_64
box: centos/8
box: generic/centos8
hypervisor: <%= hypervisor %>
server-2:
roles:
- nextserver
platform: el-8-x86_64
box: centos/8
box: generic/centos8
hypervisor: <%= hypervisor %>
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
ssh:
keepalive: true
keepalive_interval: 10
keepalive_maxcount: 60
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
4 changes: 4 additions & 0 deletions spec/acceptance/suites/doubleforward/nodesets/oel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
ssh:
keepalive: true
keepalive_interval: 10
keepalive_maxcount: 60
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
4 changes: 4 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def wait_for_log_message(
# ensure that environment OS is ready on each host
fix_errata_on hosts

# Detect cases in which no examples are executed (e.g., nodeset does not
# have hosts with required roles)
c.fail_if_no_examples = true

# Readable test descriptions
c.formatter = :documentation

Expand Down

0 comments on commit b004b09

Please sign in to comment.