From 3cfcef12356b98d1316ee8d3982ff581cac65be2 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 23 Nov 2012 21:19:44 +0000 Subject: More DNS-tests. --- t/test-custodian-testfactory.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 't') diff --git a/t/test-custodian-testfactory.rb b/t/test-custodian-testfactory.rb index 2e4f5b9..b016289 100755 --- a/t/test-custodian-testfactory.rb +++ b/t/test-custodian-testfactory.rb @@ -143,6 +143,19 @@ class TestTestFactory < Test::Unit::TestCase Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns for bytemark.co.uk as '80.68.80.26;85.17.170.78;80.68.80.27'." ) end + # + # Missing target + # + assert_raise ArgumentError do + assert( Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns resolving NS as '80.68.80.26;85.17.170.78;80.68.80.27'." ) ) + end + + # + # Missing expected results + # + assert_raise ArgumentError do + assert( Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns for www.bytemark.co.uk resolving NS " ) ) + end end -- cgit v1.2.1