Sha256: bcd9e5f15aefdbfe0b6c43043e9d27856ebb4614e591e2e17fd745c9360eabd8
Contents?: true
Size: 1.07 KB
Versions: 1
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, 3, "#{@path}/bmc-info") end it "cmd should be bmc-info with correct number of arguments" do @bmcinfo.guid verify_freeipmi_command(@bmcinfo, 4, "#{@path}/bmc-info") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyipmi-0.10.0 | spec/unit/freeipmi/bmc-info_spec.rb |