Sha256: a3d464238a75b272d05d95ba792b2b1c0343ead1622d3967b31e397d5b9eea5f
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
require 'spec_helper' describe "Bmc" do before :all do @path = '/usr/local/bin' end before :each do allow_message_expectations_on_nil provider = "freeipmi" user = "ipmiuser" pass = "impipass" host = "ipmihost" allow(Rubyipmi).to receive(:locate_command).with('ipmipower').and_return("#{@path}/ipmipower") @conn = Rubyipmi.connect(user, pass, host, provider, {:debug => true}) @bmcinfo = @conn.bmc.information data = nil File.open("spec/fixtures/#{provider}/bmc_info.txt",'r') do |file| data = file.read end allow(@bmcinfo).to receive(:locate_command).with('bmc-info').and_return("#{@path}/bmc-info") allow(@bmcinfo).to receive(:`).and_return(data) allow($?).to receive(:success?).and_return(true) end it "cmd should be bmc-info with correct number of arguments" do @bmcinfo.retrieve verify_freeipmi_command(@bmcinfo, 2, "#{@path}/bmc-info") end it "cmd should be bmc-info with correct number of arguments" do @bmcinfo.guid verify_freeipmi_command(@bmcinfo, 3, "#{@path}/bmc-info") end end
Version data entries
4 entries across 4 versions & 1 rubygems