Sha256: ef3a70d464f114bcb0f378831d67a30dcd954b7c626521c9d77fbe32d1cd823e

Contents?: true

Size: 968 Bytes

Versions: 2

Compression:

Stored size: 968 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe "Fru" do

  attr_accessor :provider
   before :each do
     user ||= ENV["ipmiuser"] || "admin"
     pass ||= ENV["ipmipass"] || "password"
     host ||= ENV["ipmihost"] || "10.0.1.16"
     provider ||= ENV["ipmiprovider"] || "ipmitool"
     @conn = Rubyipmi.connect(user, pass, host, provider)

   end

  it "test should return manufacturer" do
    @conn.fru.manufacturer.should_not be nil

   end

   it "test should return serial" do
     @conn.fru.board_serial.should_not be nil
   end

   it "test should return product name" do
     @conn.fru.model.should_not be nil
   end

   it "test should return fru list" do
     @conn.fru.list.length.should be >= 1
   end

   it "test missing method with known good method" do
     @conn.fru.chassis_type.should_not be nil
   end

   it "test missing method with known bad method" do
     expect {@conn.fru.blah}.to raise_exception
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubyipmi-0.8.1 spec/integration/fru_spec.rb
rubyipmi-0.7.0 spec/integration/fru_spec.rb