Project

General

Profile

« Previous | Next » 

Revision 5440d482

Added by Greg Sutcliffe over 9 years ago

Fixes #9147 - move managed checks to the start of the DHCP/DNS/TFTP orchestration checks

View differences:

test/unit/orchestration/dns_test.rb
assert_equal "#{b.ip}/#{b.shortname}.#{b.domain.name}", b.dns_ptr_record.to_s
end
end
test 'unmanaged should not call methods after managed?' do
if unattended?
h = FactoryGirl.create(:host)
Nic::Managed.any_instance.expects(:ip_available?).never
assert h.valid?
assert_equal false, h.dns?
assert_equal false, h.reverse_dns?
end
end
end

Also available in: Unified diff