From fcb4c7d5068b73bfc81dd1d3a800fb31a57661de Mon Sep 17 00:00:00 2001 From: Saurabh Pandit <139841984+span786@users.noreply.github.com> Date: Thu, 9 Nov 2023 11:02:08 +0530 Subject: [PATCH] [PA-5938] Fixed test for amazon-2023 --- spec/beaker/host/unix/pkg_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/beaker/host/unix/pkg_spec.rb b/spec/beaker/host/unix/pkg_spec.rb index 73ba6d83c..16febc71d 100644 --- a/spec/beaker/host/unix/pkg_spec.rb +++ b/spec/beaker/host/unix/pkg_spec.rb @@ -270,7 +270,7 @@ def exec it "uses dnf on amazon-2023" do @opts = { 'platform' => "amazon-2023-is-me" } pkg = 'amazon_package' - expect(Beaker::Command).to receive(:new).with("dnf -y install #{pkg}", [], { :prepend_cmds => nil, :cmdexe => false }).and_return('') + expect(Beaker::Command).to receive(:new).with("yum -y install #{pkg}", [], { :prepend_cmds => nil, :cmdexe => false }).and_return('') expect(instance).to receive(:exec).with('', {}).and_return(generate_result("hello", { :exit_code => 0 })) expect(instance.install_package(pkg)).to be == "hello" end