diff options
author | John <john.mccrae@progress.com> | 2023-02-22 11:56:27 -0800 |
---|---|---|
committer | John <john.mccrae@progress.com> | 2023-02-22 11:56:27 -0800 |
commit | 74a7a5e3da0cec9e3ac35cfdeb7f876125478751 (patch) | |
tree | eda4794a36cb323c904514e1a2ada36392ae04a5 | |
parent | e40cb9565d34a8e3435b1f0aa9c57e305050344b (diff) | |
download | chef-74a7a5e3da0cec9e3ac35cfdeb7f876125478751.tar.gz |
Adding a chocolatey installer
Signed-off-by: John <john.mccrae@progress.com>
-rw-r--r-- | spec/unit/resource/chocolatey_installer_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/resource/chocolatey_installer_spec.rb b/spec/unit/resource/chocolatey_installer_spec.rb index 787b4fe576..d6309961c6 100644 --- a/spec/unit/resource/chocolatey_installer_spec.rb +++ b/spec/unit/resource/chocolatey_installer_spec.rb @@ -97,6 +97,8 @@ describe Chef::Resource::ChocolateyInstaller do end def install_choco + require "chef/mixin/powershell_exec" + extend Chef::Mixin::PowershellExec powershell_code = <<-CODE Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; |