Sha256: 72a25404b7471dc204244f29d44bb011bebc5801883d50332c30c4c83ddf0f72

Contents?: true

Size: 794 Bytes

Versions: 7

Compression:

Stored size: 794 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "Bmc" do

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

  end

  it "creates a bmc object" do
    @conn.bmc.should_not be_nil

  end

  #it "options should change after calling info" do
  #  info = @conn.bmc.info
  #  before = info.options.clone
  #  @conn.bmc.info.retrieve
  #  after = info.options.clone
  #  before.length.should be < after.length
  #end


  it "is able to retrieve the bmc info" do
    @conn.bmc.info.should_not be_nil
  end

  it "is able to retrieve the guid" do
    @conn.bmc.guid.should_not be_nil
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubyipmi-0.5.1 spec/bmc_spec.rb
rubyipmi-0.5.0 spec/bmc_spec.rb
rubyipmi-0.4.0 spec/bmc_spec.rb
rubyipmi-0.3.3 spec/bmc_spec.rb
rubyipmi-0.3.2 spec/bmc_spec.rb
rubyipmi-0.3.1 spec/bmc_spec.rb
rubyipmi-0.3.0 spec/bmc_spec.rb