From 28b0212d83fd51867152d0aeb56d93daef05faba Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Fri, 8 Jul 2022 16:38:27 +0200 Subject: [PATCH] Fixes #35185 - Stub provider check in BmcTest Rubyipmi checks if ipmitool is installed, but never actually uses it. Stubbing the presence check makes testing easier for developers. --- test/bmc/bmc_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/bmc/bmc_test.rb b/test/bmc/bmc_test.rb index 635e94b1b..595ba80fc 100644 --- a/test/bmc/bmc_test.rb +++ b/test/bmc/bmc_test.rb @@ -3,6 +3,7 @@ class BmcTest < Test::Unit::TestCase def setup + Rubyipmi.stubs(:is_provider_installed?).with('ipmitool').returns(true) @args = { :username => "user", :password => "pass", :bmc_provider => "ipmitool", :host => "host" } @bmc = Proxy::BMC::IPMI.new(@args) end