diff options
author | John McCrae <john.mccrae@progress.com> | 2022-01-05 12:19:11 -0800 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-01-18 13:32:42 -0800 |
commit | 1fcd84ef31ca36bface33ce46d4498cb57a90bd3 (patch) | |
tree | 9835155e4bdf40f9dfcb1b01309bf7c234b0c8cb | |
parent | 8e8a2c5885f31631f73c7544993466288dae9f7e (diff) | |
download | chef-1fcd84ef31ca36bface33ce46d4498cb57a90bd3.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/unit/mixin/powershell_exec_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/mixin/powershell_exec_spec.rb b/spec/unit/mixin/powershell_exec_spec.rb index 92e92dc2a1..6a0af4a6e5 100644 --- a/spec/unit/mixin/powershell_exec_spec.rb +++ b/spec/unit/mixin/powershell_exec_spec.rb @@ -26,7 +26,7 @@ describe Chef::Mixin::PowershellExec, :windows_only do describe "#powershell_exec" do context "not specifying an interpreter" do it "runs a basic command and returns a Chef::PowerShell object" do - expect(object.powershell_exec("$PSVersionTable")).to be_kind_of(Chef::PowerShell) + expect(object.powershell_exec("$PSVersionTable")).to be_kind_of(Chef_PowerShell::PowerShell) end it "uses less than version 6" do @@ -37,7 +37,7 @@ describe Chef::Mixin::PowershellExec, :windows_only do context "using pwsh interpreter" do it "runs a basic command and returns a Chef::PowerShell object" do - expect(object.powershell_exec("$PSVersionTable", :pwsh)).to be_kind_of(Chef::Pwsh) + expect(object.powershell_exec("$PSVersionTable", :pwsh)).to be_kind_of(Chef_PowerShell::Pwsh) end it "uses greater than version 6" do @@ -48,7 +48,7 @@ describe Chef::Mixin::PowershellExec, :windows_only do context "using powershell interpreter" do it "runs a basic command and returns a Chef::PowerShell object" do - expect(object.powershell_exec("$PSVersionTable", :powershell)).to be_kind_of(Chef::PowerShell) + expect(object.powershell_exec("$PSVersionTable", :powershell)).to be_kind_of(Chef_PowerShell::PowerShell) end it "uses less than version 6" do @@ -76,11 +76,11 @@ describe Chef::Mixin::PowershellExec, :windows_only do describe "#powershell_exec!" do it "runs a basic command and returns a Chef::PowerShell object" do - expect(object.powershell_exec!("$PSVersionTable")).to be_kind_of(Chef::PowerShell) + expect(object.powershell_exec!("$PSVersionTable")).to be_kind_of(Chef_PowerShell::PowerShell) end it "raises an error if the command fails" do - expect { object.powershell_exec!("this-should-error") }.to raise_error(Chef::PowerShell::CommandFailed) + expect { object.powershell_exec!("this-should-error") }.to raise_error(Chef_PowerShell::PowerShellExceptions::PowerShellCommandFailed) end it "raises an error if the interpreter is invalid" do |