diff options
author | Tim Smith <tsmith@chef.io> | 2020-11-11 17:09:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 17:09:51 -0800 |
commit | 0e5209c379276008064661c2754887bdeff9cf01 (patch) | |
tree | ac281d1f05037704197f2c9b7ff1d39ff29e1dbd | |
parent | 9eaf26d6824f38483ae26b1b1648c2451fd46a4b (diff) | |
parent | 546585dd2ba0e1ff11952d3de84e6b27def697d7 (diff) | |
download | chef-0e5209c379276008064661c2754887bdeff9cf01.tar.gz |
Merge pull request #10633 from chef/fix_ps_specs
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/functional/resource/powershell_package_source_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/functional/resource/powershell_package_source_spec.rb b/spec/functional/resource/powershell_package_source_spec.rb index fa95415788..abc9dcabd1 100644 --- a/spec/functional/resource/powershell_package_source_spec.rb +++ b/spec/functional/resource/powershell_package_source_spec.rb @@ -18,7 +18,7 @@ require "spec_helper" require "chef/mixin/powershell_exec" -describe Chef::Resource::PowershellPackageSource, :windows_only do +describe Chef::Resource::PowershellPackageSource, :windows_gte_10 do include Chef::Mixin::PowershellExec let(:source_name) { "fake" } @@ -83,6 +83,10 @@ describe Chef::Resource::PowershellPackageSource, :windows_only do context "with NuGet provider" do let(:provider_name) { "NuGet" } + before(:all) do + powershell_exec!("[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;Install-PackageProvider -Name NuGet -Force") + end + it_behaves_like "package_source" end |