summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2019-04-09 15:51:09 -0400
committerBryan McLellan <btm@loftninjas.org>2019-04-11 15:49:26 -0400
commit98d736b40bcde92026b30c1566fbaaaefb5636cd (patch)
tree958ffb4a3321949c624231206dc5a0209022afa4
parent3a87c705090c7f44d51666c0bf88add9c2445e9a (diff)
downloadchef-98d736b40bcde92026b30c1566fbaaaefb5636cd.tar.gz
Don't force DSC functional tests to PS4btm/fix-dsc-test-errors
New Windows platforms like 2016 have Powershell 5. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
-rw-r--r--spec/functional/resource/dsc_script_spec.rb2
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 04a65acae7..37b70598df 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