diff options
author | Tim Smith <tsmith@chef.io> | 2020-03-18 08:57:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-18 08:57:03 -0700 |
commit | 2053ef67f1fd26551edde4eb5a9101893b617e12 (patch) | |
tree | b086d78c85d4eb5ba174d3b8b727cdd1398067b2 /spec | |
parent | e0e731d8cb30cecadf809b1ab1bae58793aacc8e (diff) | |
parent | 7b657b8aed794bee21c99bf532588109b7cea070 (diff) | |
download | chef-2053ef67f1fd26551edde4eb5a9101893b617e12.tar.gz |
Merge pull request #9492 from MsysTechnologiesllc/sangmesh/Fixed_Use_Ohai_data_to_determine_if_we_have_PowerShell_installed
powershell_package: Use ohai data to get the powershell release instead of shelling out
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/package/powershell_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/provider/package/powershell_spec.rb b/spec/unit/provider/package/powershell_spec.rb index e4adc402cb..455ec21092 100644 --- a/spec/unit/provider/package/powershell_spec.rb +++ b/spec/unit/provider/package/powershell_spec.rb @@ -19,7 +19,7 @@ require "spec_helper" require "chef/mixin/powershell_out" -describe Chef::Provider::Package::Powershell do +describe Chef::Provider::Package::Powershell, :windows_only do include Chef::Mixin::PowershellOut let(:timeout) { 900 } let(:source) { nil } @@ -28,6 +28,7 @@ describe Chef::Provider::Package::Powershell do let(:provider) do node = Chef::Node.new + node.consume_external_attrs(OHAI_SYSTEM.data.dup, {}) events = Chef::EventDispatch::Dispatcher.new run_context = Chef::RunContext.new(node, {}, events) Chef::Provider::Package::Powershell.new(new_resource, run_context) |