Project

General

Profile

« Previous | Next » 

Revision 1a68aea8

Added by Greg Sutcliffe over 11 years ago

  • ID 1a68aea83c59e95343fcdff3e3bae63f273a7c65

Fixes #983 - implement 3 state boot

View differences:

test/unit/orchestration/dhcp_test.rb
assert_equal h.mac, h.old.mac
assert_equal h.name, h.old.name
assert_equal h.subnet, h.old.subnet
assert h.queue.items.empty?
assert h.queue.items.select {|x| x.action.last =~ /dhcp/ }.empty?
end
test "existing host should not change any bmc dhcp settings" do
......
assert_equal h.sp_mac, h.old.sp_mac
assert_equal h.sp_name, h.old.sp_name
assert_equal h.sp_subnet, h.old.sp_subnet
assert h.queue.items.empty?
assert h.queue.items.select {|x| x.action.last =~ /sp_dhcp/ }.empty?
end
test "when an existing host change its ip address, its dhcp record should be updated" do

Also available in: Unified diff