|
104 | 104 |
|
105 | 105 | it { is_expected.to contain_class('puppet::agent::service::systemd').with_enabled(false) } |
106 | 106 | case os |
107 | | - when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/ |
| 107 | + when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Aarchlinux-/ |
108 | 108 | it do |
109 | 109 | is_expected.to contain_exec('systemctl-daemon-reload-puppet') |
110 | 110 | .with_refreshonly(true) |
|
188 | 188 | case os |
189 | 189 | when /\A(windows|archlinux)/ |
190 | 190 | it { is_expected.to raise_error(Puppet::Error, /Runmode of cron not supported on #{facts[:kernel]} operating systems!/) } |
191 | | - when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/ |
| 191 | + when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/ |
192 | 192 | it { is_expected.to compile.with_all_deps } |
193 | 193 | it { is_expected.to contain_concat__fragment('puppet.conf_agent') } |
194 | 194 | if facts[:osfamily] == 'Debian' |
|
247 | 247 | case os |
248 | 248 | when /\A(windows|archlinux)/ |
249 | 249 | it { is_expected.to raise_error(Puppet::Error, /Runmode of cron not supported on #{facts[:kernel]} operating systems!/) } |
250 | | - when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/ |
| 250 | + when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/ |
251 | 251 | it { is_expected.to contain_class('puppet::agent::service::cron').with_enabled(true) } |
252 | 252 | it { is_expected.to contain_class('puppet::agent::service::daemon').with_enabled(false) } |
253 | 253 | it do |
|
288 | 288 | end |
289 | 289 |
|
290 | 290 | case os |
291 | | - when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/ |
| 291 | + when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Aarchlinux-/ |
292 | 292 | it { is_expected.to compile.with_all_deps } |
293 | 293 | it { is_expected.to contain_class('puppet::agent::service::daemon').with_enabled(false) } |
294 | 294 | it { is_expected.to contain_class('puppet::agent::service::cron').with_enabled(false) } |
|
337 | 337 | end |
338 | 338 |
|
339 | 339 | case os |
340 | | - when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/ |
| 340 | + when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Aarchlinux-/ |
341 | 341 | it { is_expected.to compile.with_all_deps } |
342 | 342 | it { is_expected.to contain_class('puppet::agent::service::daemon').with_enabled(false) } |
343 | 343 | it { is_expected.to contain_class('puppet::agent::service::cron').with_enabled(false) } |
|
391 | 391 | it { is_expected.to contain_class('puppet::agent::service::systemd').with_enabled(false) } |
392 | 392 |
|
393 | 393 | case os |
394 | | - when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/ |
| 394 | + when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Aarchlinux-/ |
395 | 395 | it { is_expected.to contain_service('puppet-run.timer').with_ensure(:stopped) } |
396 | 396 | else |
397 | 397 | it { is_expected.not_to contain_service('puppet-run.timer') } |
|
0 commit comments