Revision 0ef59e67
Added by Trey Dockendorf about 10 years ago
test/unit/orchestration/dhcp_test.rb | ||
---|---|---|
end
|
||
end
|
||
|
||
def test_bmc_should_have_valid_dhcp_record
|
||
if unattended?
|
||
b = nics(:bmc)
|
||
b.domain = domains(:mydomain)
|
||
b.subnet = subnets(:five)
|
||
assert b.dhcp?
|
||
assert_equal "#{b.name}.#{b.domain.name}-#{b.mac}/#{b.ip}", b.dhcp_record.to_s
|
||
end
|
||
end
|
||
|
||
test "jumpstart parameter generation" do
|
||
h = hosts(:sol10host)
|
||
Resolv::DNS.any_instance.stubs(:getaddress).with("brsla01").returns("2.3.4.5").once
|
Also available in: Unified diff
fixes #4599 - DNS and DHCP records for BMC and managed interfaces not using FQDN
(cherry picked from commit 21e07e92ca2d0341a09de48fadfa95625f6d9f55)