summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-01-05 10:01:39 -0800
committerJohn McCrae <john.mccrae@progress.com>2022-01-18 13:32:42 -0800
commit67ccbeeab29909255e60bb6a366833fcd61ff0a5 (patch)
treea5b18a74965bb783e9cdbf6c27f6f90cc6ca2838
parent35010d7b3d21970d7fecb3084af4be26230e2ab4 (diff)
downloadchef-67ccbeeab29909255e60bb6a366833fcd61ff0a5.tar.gz
Updated the chef client to retrieve certs from the Windows registry. Tests included. This is PR3 since I keep trashing them
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--spec/functional/resource/dsc_script_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/dsc_script_spec.rb b/spec/functional/resource/dsc_script_spec.rb
index 153182f613..b83c1302c2 100644
--- a/spec/functional/resource/dsc_script_spec.rb
+++ b/spec/functional/resource/dsc_script_spec.rb
@@ -17,7 +17,6 @@
#
require "spec_helper"
-require "chef-powershell"
require "chef/mixin/powershell_exec"
require "chef/mixin/windows_architecture_helper"
require "support/shared/integration/integration_helper"
@@ -261,10 +260,11 @@ describe Chef::Resource::DscScript, :windows_powershell_dsc_only, :ruby64_only d
end
it "should raise an exception if the cwd is etc" do
+ # Chef_PowerShell::PowerShellExceptions::PowerShellCommandFailed
dsc_test_resource.cwd(dsc_environment_fail_etc_directory)
expect {
dsc_test_resource.run_action(:run)
- }.to raise_error(Chef::PowerShell::CommandFailed, /#{exception_message_signature}/)
+ }.to raise_error(Chef_PowerShell::PowerShellExceptions::PowerShellCommandFailed, /#{exception_message_signature}/)
end
end
end