Sha256: 1399f0fe9ca90deb03edbf5ae8dec067d1679c57c8e270a09658417790e5e221
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Power" 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 power on" do @conn.chassis.power.on.should == true end it "test to turn power off" do @conn.chassis.power.off.should == true end it "test power status" do @conn.chassis.power.status.should_not be nil end it "test to check that options automatically change" do before = @conn.chassis.power.options.clone @conn.chassis.power.off after = @conn.chassis.power.options.clone after.length.should be > before.length end it "test to check if power status if off" do before = @conn.chassis.power.options.clone @conn.chassis.power.off after = @conn.chassis.power.options.clone sleep(2) @conn.chassis.power.off?.should == true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rubyipmi-0.6.0 | spec/power_spec.rb |
rubyipmi-0.5.1 | spec/power_spec.rb |
rubyipmi-0.5.0 | spec/power_spec.rb |
rubyipmi-0.4.0 | spec/power_spec.rb |