Skip to content

Commit b004b09

Browse files
(SIMP-10057) rsyslog Add Puppet 7 acceptance test (#127)
* 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
1 parent 8ebfbb1 commit b004b09

File tree

9 files changed

+52
-12
lines changed

9 files changed

+52
-12
lines changed

.fixtures.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
fixtures:
33
repositories:
44
auditd: https://github.com/simp/pupmod-simp-auditd.git
5-
augeas_core:
6-
repo: https://github.com/simp/pupmod-puppetlabs-augeas_core.git
7-
puppet_version: ">= 6.0.0"
5+
augeas_core: https://github.com/simp/pupmod-puppetlabs-augeas_core.git
86
augeasproviders_core: https://github.com/hercules-team/augeasproviders_core.git
97
augeasproviders_grub: https://github.com/hercules-team/augeasproviders_grub.git
108
compliance_markup: https://github.com/simp/pupmod-simp-compliance_markup.git

.gitlab-ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ pup7.x-unit:
337337
# Manually, we can see that failover is working, but all the messages
338338
# don't make it to the failover server in a timely fashion, even if
339339
# we force the rsyslog queues to be small.
340-
#pup5.pe-failover:
341-
# <<: *pup_5_pe
340+
#pup6.pe-failover:
341+
# <<: *pup_6_pe
342342
# <<: *acceptance_base
343343
# <<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_3
344344
# script:
@@ -408,3 +408,17 @@ pup6.pe-oel-fips:
408408
<<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_3
409409
script:
410410
- 'BEAKER_fips=yes bundle exec rake beaker:suites[default,oel]'
411+
412+
pup7.x:
413+
<<: *pup_7_x
414+
<<: *acceptance_base
415+
script:
416+
- 'bundle exec rake beaker:suites[default,default]'
417+
418+
pup7.x-doubleforward:
419+
<<: *pup_7_x
420+
<<: *acceptance_base
421+
<<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_3
422+
script:
423+
- 'bundle exec rake beaker:suites[doubleforward,default]'
424+

spec/acceptance/nodesets/centos-7.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ HOSTS:
3434
roles:
3535
- server
3636
platform: el-8-x86_64
37-
box: centos/8
37+
box: generic/centos8
3838
hypervisor: <%= hypervisor %>
3939
yum_repos:
4040
chef-current:
@@ -56,6 +56,10 @@ CONFIG:
5656
log_level: verbose
5757
type: aio
5858
vagrant_memsize: 256
59+
ssh:
60+
keepalive: true
61+
keepalive_interval: 10
62+
keepalive_maxcount: 60
5963
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
6064
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
6165
<% end -%>

spec/acceptance/nodesets/default.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ HOSTS:
1111
- default
1212
- client
1313
platform: el-8-x86_64
14-
box: centos/8
14+
box: generic/centos8
1515
hypervisor: <%= hypervisor %>
1616
yum_repos:
1717
chef-current:
@@ -22,7 +22,7 @@ HOSTS:
2222
roles:
2323
- server
2424
platform: el-8-x86_64
25-
box: centos/8
25+
box: generic/centos8
2626
hypervisor: <%= hypervisor %>
2727
yum_repos:
2828
chef-current:
@@ -44,7 +44,7 @@ HOSTS:
4444
roles:
4545
- failover_server
4646
platform: el-8-x86_64
47-
box: centos/8
47+
box: generic/centos8
4848
hypervisor: <%= hypervisor %>
4949
yum_repos:
5050
chef-current:
@@ -55,6 +55,10 @@ CONFIG:
5555
log_level: verbose
5656
type: aio
5757
vagrant_memsize: 256
58+
ssh:
59+
keepalive: true
60+
keepalive_interval: 10
61+
keepalive_maxcount: 60
5862
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
5963
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
6064
<% end -%>

spec/acceptance/nodesets/oel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ CONFIG:
3636
log_level: verbose
3737
type: aio
3838
vagrant_memsize: 256
39+
ssh:
40+
keepalive: true
41+
keepalive_interval: 10
42+
keepalive_maxcount: 60
3943
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
4044
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
4145
<% end -%>

spec/acceptance/suites/doubleforward/nodesets/centos-7.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ CONFIG:
3030
log_level: verbose
3131
type: aio
3232
vagrant_memsize: 256
33+
ssh:
34+
keepalive: true
35+
keepalive_interval: 10
36+
keepalive_maxcount: 60
3337
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
3438
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
3539
<% end -%>

spec/acceptance/suites/doubleforward/nodesets/default.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,28 @@ HOSTS:
1212
- master
1313
- client
1414
platform: el-8-x86_64
15-
box: centos/8
15+
box: generic/centos8
1616
hypervisor: <%= hypervisor %>
1717
server-1:
1818
roles:
1919
- server
2020
platform: el-8-x86_64
21-
box: centos/8
21+
box: generic/centos8
2222
hypervisor: <%= hypervisor %>
2323
server-2:
2424
roles:
2525
- nextserver
2626
platform: el-8-x86_64
27-
box: centos/8
27+
box: generic/centos8
2828
hypervisor: <%= hypervisor %>
2929
CONFIG:
3030
log_level: verbose
3131
type: aio
3232
vagrant_memsize: 256
33+
ssh:
34+
keepalive: true
35+
keepalive_interval: 10
36+
keepalive_maxcount: 60
3337
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
3438
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
3539
<% end -%>

spec/acceptance/suites/doubleforward/nodesets/oel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ CONFIG:
3030
log_level: verbose
3131
type: aio
3232
vagrant_memsize: 256
33+
ssh:
34+
keepalive: true
35+
keepalive_interval: 10
36+
keepalive_maxcount: 60
3337
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
3438
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
3539
<% end -%>

spec/spec_helper_acceptance.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ def wait_for_log_message(
5454
# ensure that environment OS is ready on each host
5555
fix_errata_on hosts
5656

57+
# Detect cases in which no examples are executed (e.g., nodeset does not
58+
# have hosts with required roles)
59+
c.fail_if_no_examples = true
60+
5761
# Readable test descriptions
5862
c.formatter = :documentation
5963

0 commit comments

Comments
 (0)