Project

General

Profile

« Previous | Next » 

Revision 21e07e92

Added by Trey Dockendorf about 10 years ago

fixes #4599 - DNS and DHCP records for BMC and managed interfaces not using FQDN

View differences:

test/unit/nic_test.rb
assert_equal subnet.network, interface.network
assert_equal subnet.vlanid, interface.vlanid
end
test "Nic::BMC should have hostname containing name and domain name" do
subnet = subnets(:five)
domain = domains(:mydomain)
interface = nics(:bmc)
interface.subnet = subnet
interface.domain = domain
assert_equal "#{interface.name}.#{interface.domain.name}", interface.hostname
end
test "Nic::BMC should have hostname containing name when domain nil" do
subnet = subnets(:five)
interface = nics(:bmc)
interface.subnet = subnet
interface.domain = nil
assert_equal interface.name, interface.hostname
end
end

Also available in: Unified diff