summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormwrock <matt@mattwrock.com>2020-11-11 14:07:30 -0800
committermwrock <matt@mattwrock.com>2020-11-11 14:07:30 -0800
commit546585dd2ba0e1ff11952d3de84e6b27def697d7 (patch)
tree6add7b2a941dd2f1eb3b8a250c7bd88631f52ea0
parentad1f3bc53e37e98a9bf779a3200d0e469e6ce8da (diff)
downloadchef-546585dd2ba0e1ff11952d3de84e6b27def697d7.tar.gz
fix tls
Signed-off-by: mwrock <matt@mattwrock.com>
-rw-r--r--spec/functional/resource/powershell_package_source_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functional/resource/powershell_package_source_spec.rb b/spec/functional/resource/powershell_package_source_spec.rb
index d6bd1744d7..abc9dcabd1 100644
--- a/spec/functional/resource/powershell_package_source_spec.rb
+++ b/spec/functional/resource/powershell_package_source_spec.rb
@@ -84,7 +84,7 @@ describe Chef::Resource::PowershellPackageSource, :windows_gte_10 do
let(:provider_name) { "NuGet" }
before(:all) do
- powershell_exec!("Install-PackageProvider -Name NuGet -Force")
+ powershell_exec!("[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;Install-PackageProvider -Name NuGet -Force")
end
it_behaves_like "package_source"