summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-06-22 14:12:54 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-06-22 14:12:54 -0700
commit4b4738568d9e7fcc3018936569c5013b0adabe3b (patch)
treeb31aaa94bc84a3154b536b349b070e69f543b245 /spec/unit
parent7f23b35885cd842092a25f8607658384bfd01528 (diff)
downloadchef-4b4738568d9e7fcc3018936569c5013b0adabe3b.tar.gz
More aggressively deprecate config_value
Force subclasses to use the `config` hash directly. This should not affect any knife plugins shipping in chef-workstation since the calls to config_value have already been removed from all of those plugins. The multiple-argument version of config_value was not actually used anywhere in those plugins and the single value version was removed and replaced with accessing the config hash. Since that was introduced sometime in 15.x when the bootstrap changes went in, it is not expected that many external knife plugins have picked up the usage of config_value. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/knife/bootstrap_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb
index ff61af43c4..f19f28cdb2 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -1927,6 +1927,7 @@ describe Chef::Knife::Bootstrap do
Chef::Config[:knife][:test_key_c] = "c from Chef::Config"
Chef::Config[:knife][:alt_test_key_c] = "alt c from Chef::Config"
knife.merge_configs
+ Chef::Config[:treat_deprecation_warnings_as_errors] = false
end
it "returns the Chef::Config value from the cli when the CLI key is set" do