summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-11-19 14:51:25 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2018-11-19 14:51:25 -0800
commit324f7473cd79c2cbd19b851b9b76c4759138e605 (patch)
tree62948532aee1fa789d26513f9ad64eb57a0e4b27
parentbcf36fd7749ea63dc41f25b2ae7f15f6b4de9c10 (diff)
downloadchef-lcg/chef-15-allow-downgrade.tar.gz
fix one of the yum func testslcg/chef-15-allow-downgrade
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/functional/resource/yum_package_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/functional/resource/yum_package_spec.rb b/spec/functional/resource/yum_package_spec.rb
index cde193db70..f99f03bdf1 100644
--- a/spec/functional/resource/yum_package_spec.rb
+++ b/spec/functional/resource/yum_package_spec.rb
@@ -443,8 +443,9 @@ describe Chef::Resource::YumPackage, :requires_root, external: exclude_test do
expect(shell_out("rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' chef_rpm").stdout.chomp).to match("^chef_rpm-1.2-1.#{pkg_arch}$")
end
- it "downgrade on a local file is ignored" do
+ it "downgrade on a local file is ignored when allow_downgrade is false" do
preinstall("chef_rpm-1.10-1.#{pkg_arch}.rpm")
+ yum_package.allow_downgrade false
yum_package.version "1.2-1"
yum_package.package_name("#{CHEF_SPEC_ASSETS}/yumrepo/chef_rpm-1.2-1.#{pkg_arch}.rpm")
yum_package.run_action(:install)