diff options
author | Tim Smith <tsmith@chef.io> | 2020-01-21 10:10:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 10:10:58 -0800 |
commit | ca32c4b96b1b881f21d7c501b137ec20db8cb6c1 (patch) | |
tree | 1711ff0814bdb3f4e37c33c595a9d04fb51d47dd /spec | |
parent | 88444e0beddedc5d66b0cebc844e68e5a39524ee (diff) | |
parent | 20470f104db79864b5aa871eb17e72f4884d25b5 (diff) | |
download | chef-ca32c4b96b1b881f21d7c501b137ec20db8cb6c1.tar.gz |
Merge pull request #9205 from chef/remove_2008_feature
Remove support for Windows 7 / 2008 from windows_feature
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/windows_feature_dism_spec.rb | 21 | ||||
-rw-r--r-- | spec/unit/resource/windows_feature_powershell_spec.rb | 21 |
2 files changed, 6 insertions, 36 deletions
diff --git a/spec/unit/resource/windows_feature_dism_spec.rb b/spec/unit/resource/windows_feature_dism_spec.rb index 87d99ecbaf..bc6ca3adeb 100644 --- a/spec/unit/resource/windows_feature_dism_spec.rb +++ b/spec/unit/resource/windows_feature_dism_spec.rb @@ -1,5 +1,5 @@ # -# Copyright:: Copyright 2018, Chef Software, Inc. +# Copyright:: Copyright 2018-2020, Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -32,7 +32,6 @@ describe Chef::Resource::WindowsFeatureDism do end it "the feature_name property is the name_property" do - node.automatic[:platform_version] = "6.2.9200" expect(resource.feature_name).to eql(%w{snmp dhcp}) end @@ -46,27 +45,13 @@ describe Chef::Resource::WindowsFeatureDism do expect { resource.action :remove }.not_to raise_error end - it "coerces comma separated lists of features to a lowercase array on 2012+" do - node.automatic[:platform_version] = "6.2.9200" + it "coerces comma separated lists of features to a lowercase array" do resource.feature_name "SNMP, DHCP" expect(resource.feature_name).to eql(%w{snmp dhcp}) end - it "coerces a single feature as a String to a lowercase array on 2012+" do - node.automatic[:platform_version] = "6.2.9200" + it "coerces a single feature as a String to a lowercase array" do resource.feature_name "SNMP" expect(resource.feature_name).to eql(["snmp"]) end - - it "coerces comma separated lists of features to an array, but preserves case on < 2012" do - node.automatic[:platform_version] = "6.1.7601" - resource.feature_name "SNMP, DHCP" - expect(resource.feature_name).to eql(%w{SNMP DHCP}) - end - - it "coerces a single feature as a String to an array, but preserves case on < 2012" do - node.automatic[:platform_version] = "6.1.7601" - resource.feature_name "SNMP" - expect(resource.feature_name).to eql(["SNMP"]) - end end diff --git a/spec/unit/resource/windows_feature_powershell_spec.rb b/spec/unit/resource/windows_feature_powershell_spec.rb index 3dc1604361..2d199ea809 100644 --- a/spec/unit/resource/windows_feature_powershell_spec.rb +++ b/spec/unit/resource/windows_feature_powershell_spec.rb @@ -1,5 +1,5 @@ # -# Copyright:: Copyright 2018, Chef Software, Inc. +# Copyright:: Copyright 2018-2020, Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -32,7 +32,6 @@ describe Chef::Resource::WindowsFeaturePowershell do end it "the feature_name property is the name_property" do - node.automatic[:platform_version] = "6.2.9200" expect(resource.feature_name).to eql(%w{snmp dhcp}) end @@ -46,27 +45,13 @@ describe Chef::Resource::WindowsFeaturePowershell do expect { resource.action :remove }.not_to raise_error end - it "coerces comma separated lists of features to a lowercase array on 2012+" do - node.automatic[:platform_version] = "6.2.9200" + it "coerces comma separated lists of features to a lowercase array" do resource.feature_name "SNMP, DHCP" expect(resource.feature_name).to eql(%w{snmp dhcp}) end - it "coerces a single feature as a String to a lowercase array on 2012+" do - node.automatic[:platform_version] = "6.2.9200" + it "coerces a single feature as a String to a lowercase array" do resource.feature_name "SNMP" expect(resource.feature_name).to eql(["snmp"]) end - - it "coerces comma separated lists of features to an array, but preserves case on < 2012" do - node.automatic[:platform_version] = "6.1.7601" - resource.feature_name "SNMP, DHCP" - expect(resource.feature_name).to eql(%w{SNMP DHCP}) - end - - it "coerces a single feature as a String to an array, but preserves case on < 2012" do - node.automatic[:platform_version] = "6.1.7601" - resource.feature_name "SNMP" - expect(resource.feature_name).to eql(["SNMP"]) - end end |