Sha256: 983e44fe7318056d35036add68c83bf7c00618a7893495354dd8b9259c4b097f

Contents?: true

Size: 609 Bytes

Versions: 4

Compression:

Stored size: 609 Bytes

Contents

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

describe "Chassis" 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 "test to turn uid light on for 10 seconds" do
    value = @conn.chassis.identify(true, 5)
    sleep(6)
    value.should == true
  end

  it "test to turn uid light on then off" do
    @conn.chassis.identify(true)
    sleep(2)
    @conn.chassis.identify(false).should == true
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubyipmi-0.6.0 spec/chassis_spec.rb
rubyipmi-0.5.1 spec/chassis_spec.rb
rubyipmi-0.5.0 spec/chassis_spec.rb
rubyipmi-0.4.0 spec/chassis_spec.rb