diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-11-17 15:01:29 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-11-17 15:01:29 -0800 |
commit | 92a8e677876272481fc8492fe90bf5e847ea5778 (patch) | |
tree | 6ec0cf3b3d3e0cc4b693f4d6089e4ee59e448498 | |
parent | 42108d9af63f1fba84e53c675e8497d9a7f1c141 (diff) | |
download | chef-92a8e677876272481fc8492fe90bf5e847ea5778.tar.gz |
remove deprecation check
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/functional/resource/dnf_package_spec.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/functional/resource/dnf_package_spec.rb b/spec/functional/resource/dnf_package_spec.rb index 88a81536eb..1215e652ca 100644 --- a/spec/functional/resource/dnf_package_spec.rb +++ b/spec/functional/resource/dnf_package_spec.rb @@ -1049,25 +1049,6 @@ describe Chef::Resource::DnfPackage, :requires_root, external: exclude_test do action :install end.should_not_be_updated end - - it "throws a deprecation warning with allow_downgrade" do - Chef::Config[:treat_deprecation_warnings_as_errors] = false - expect(Chef).to receive(:deprecated).at_least(:once).with(:dnf_package_allow_downgrade, /^the allow_downgrade property on the dnf_package provider is not used/) - preinstall("chef_rpm-1.10-1.#{pkg_arch}.rpm") - dnf_package "chef_rpm" do - options default_options - version "1.2" - allow_downgrade true - action :install - end.should_be_updated - expect(shell_out("rpm -q chef_rpm").stdout.chomp).to match("^chef_rpm-1.2-1.#{pkg_arch}") - dnf_package "chef_rpm" do - options default_options - version "1.2" - allow_downgrade true - action :install - end.should_not_be_updated - end end context "with source arguments" do |