|
78 | 78 | step "Masking the #{package_name[platform]} service" |
79 | 79 | apply_manifest_on(agent, manifest_service_masked, :catch_failures => true) |
80 | 80 | on(agent, puppet_resource('service', package_name[platform])) do |
81 | | - assert_match(/ensure => 'stopped'/, stdout, "Expected #{package_name[platform]} service to be stopped") |
82 | | - assert_match(/enable => 'false'/, stdout, "Expected #{package_name[platform]} service to be masked") |
| 81 | + assert_match(/ensure.+=> 'stopped'/, stdout, "Expected #{package_name[platform]} service to be stopped") |
| 82 | + assert_match(/enable.+=> 'false'/, stdout, "Expected #{package_name[platform]} service to be masked") |
83 | 83 | on(agent, "readlink #{masked_symlink_systemd}") do |
84 | 84 | assert_equal('/dev/null', stdout.chomp, "Expected service symlink to point to /dev/null") |
85 | 85 | end |
|
88 | 88 | step "Enabling the #{package_name[platform]} service" |
89 | 89 | apply_manifest_on(agent, manifest_service_enabled, :catch_failures => true) |
90 | 90 | on(agent, puppet_resource('service', package_name[platform])) do |
91 | | - assert_match(/ensure => 'running'/, stdout, "Expected #{package_name[platform]} service to be running") |
92 | | - assert_match(/enable => 'true'/, stdout, "Expected #{package_name[platform]} service to be enabled") |
| 91 | + assert_match(/ensure.+=> 'running'/, stdout, "Expected #{package_name[platform]} service to be running") |
| 92 | + assert_match(/enable.+=> 'true'/, stdout, "Expected #{package_name[platform]} service to be enabled") |
93 | 93 | on(agent, "readlink #{symlink_systemd}") do |
94 | 94 | assert_equal(init_script_systemd, stdout.chomp, "Expected service symlink to point to systemd init script") |
95 | 95 | end |
|
0 commit comments