diff options
author | Bryan McLellan <btm@loftninjas.org> | 2019-04-09 15:51:09 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2019-04-12 10:27:52 -0400 |
commit | 0630b19a86f14cca281f951a58ed148df9e26636 (patch) | |
tree | 4563e542653c7409c7734789ee1f4b09791ec582 /spec | |
parent | ddcc875fcd77243ea580b91be50d51aea79499ca (diff) | |
download | chef-0630b19a86f14cca281f951a58ed148df9e26636.tar.gz |
Don't force DSC functional tests to PS4
New Windows platforms like 2016 have Powershell 5.
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/functional/resource/dsc_script_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functional/resource/dsc_script_spec.rb b/spec/functional/resource/dsc_script_spec.rb index 1caa07d105..0439625778 100644 --- a/spec/functional/resource/dsc_script_spec.rb +++ b/spec/functional/resource/dsc_script_spec.rb @@ -74,11 +74,11 @@ describe Chef::Resource::DscScript, :windows_powershell_dsc_only do let(:env_value2) { "value2" } let(:dsc_test_run_context) do node = Chef::Node.new + node.consume_external_attrs(OHAI_SYSTEM.data, {}) # node[:languages][:powershell][:version] node.automatic["os"] = "windows" node.automatic["platform"] = "windows" node.automatic["platform_version"] = "6.1" node.automatic["kernel"][:machine] = :x86_64 # Only 64-bit architecture is supported - node.automatic[:languages][:powershell][:version] = "4.0" empty_events = Chef::EventDispatch::Dispatcher.new Chef::RunContext.new(node, {}, empty_events) end |