aboutsummaryrefslogtreecommitdiff
path: root/spec/acceptance
diff options
context:
space:
mode:
authorGabriel Nagy <gabriel.nagy@puppet.com>2021-10-01 14:23:15 +0300
committerGabriel Nagy <gabriel.nagy@puppet.com>2021-10-01 14:26:09 +0300
commitb2565ef72fd744e31cc3e3836dc5b69e193fa88c (patch)
tree3fd2f83f284b673ea19187b395101e1663171cf8 /spec/acceptance
parent9a54482d64ef21e8b6b1063845a96b1a72cd8f3c (diff)
downloadpuppet-sshkeys_core-b2565ef72fd744e31cc3e3836dc5b69e193fa88c.tar.gz
puppet-sshkeys_core-b2565ef72fd744e31cc3e3836dc5b69e193fa88c.tar.bz2
(MODULES-11197) Update to pdk-templates 2.2.0
Includes REFERENCE.md ToC fixes for MODULES-8183.
Diffstat (limited to 'spec/acceptance')
-rw-r--r--spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb b/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb
index bfc75a7..d19d328 100644
--- a/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb
+++ b/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb
@@ -65,7 +65,7 @@ RSpec.context 'ssh_authorized_key: Create' do
'drop_privileges=false',
"target=/home/testuser/tmp/ssh_authorized_keys_#{name}/authorized_keys_#{name}"]
on(agent, puppet_resource('ssh_authorized_key', name.to_s, args)) do |_res|
- fail_test unless stderr =~ %r{the target path is not trusted}
+ fail_test unless %r{the target path is not trusted}.match?(stderr)
end
on(agent, "rm -rf #{custom_key_directory}")
@@ -81,7 +81,7 @@ RSpec.context 'ssh_authorized_key: Create' do
'drop_privileges=false',
"target='#{custom_key}'"]
on(agent, puppet_resource('ssh_authorized_key', name.to_s, args), acceptable_exit_codes: [0, 1]) do |_res|
- fail_test unless stderr =~ %r{the target path is not trusted}
+ fail_test unless %r{the target path is not trusted}.match?(stderr)
end
end
end