summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john.mccrae@progress.com>2023-02-22 11:56:27 -0800
committerJohn <john.mccrae@progress.com>2023-02-22 11:56:27 -0800
commit74a7a5e3da0cec9e3ac35cfdeb7f876125478751 (patch)
treeeda4794a36cb323c904514e1a2ada36392ae04a5
parente40cb9565d34a8e3435b1f0aa9c57e305050344b (diff)
downloadchef-74a7a5e3da0cec9e3ac35cfdeb7f876125478751.tar.gz
Adding a chocolatey installer
Signed-off-by: John <john.mccrae@progress.com>
-rw-r--r--spec/unit/resource/chocolatey_installer_spec.rb2
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;