|
require 'test_helper'
|
|
|
|
class DnsOrchestrationTest < ActiveSupport::TestCase
|
|
def setup
|
|
disable_orchestration
|
|
end
|
|
|
|
def test_host_should_have_dns
|
|
if unattended?
|
|
h = hosts(:one)
|
|
assert h.valid?
|
|
assert h.dns?
|
|
assert_not_nil h.dns_a_record
|
|
assert_not_nil h.dns_ptr_record
|
|
end
|
|
end
|
|
|
|
def test_host_should_not_have_dns
|
|
if unattended?
|
|
h = hosts(:minimal)
|
|
assert h.valid?
|
|
assert_equal false, h.dns?
|
|
assert_equal nil, h.dns_a_record
|
|
assert_equal nil, h.dns_ptr_record
|
|
end
|
|
end
|
|
end
|