Sha256: 926299e283aaca58721a509f8ff0d6fff97e76b2128211d69ea77f8ca09bd9d0

Contents?: true

Size: 940 Bytes

Versions: 5

Compression:

Stored size: 940 Bytes

Contents

require '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
    expect(@conn.fru.manufacturer).not_to be nil

   end

   it "test should return serial" do
     expect(@conn.fru.board_serial).not_to be nil
   end

   it "test should return product name" do
     expect(@conn.fru.model).not_to be nil
   end

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

   it "test missing method with known good method" do
     expect(@conn.fru.chassis_type).not_to be nil
   end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubyipmi-0.10.0 spec/integration/fru_spec.rb
rubyipmi-0.9.3 spec/integration/fru_spec.rb
rubyipmi-0.9.2 spec/integration/fru_spec.rb
rubyipmi-0.9.1 spec/integration/fru_spec.rb
rubyipmi-0.9.0 spec/integration/fru_spec.rb