summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-23 21:19:44 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-23 21:19:44 +0000
commit59560bf91adb0c8a10ff19f9e7c491434f5b68a8 (patch)
treec217f612edacf6af9e07b98c785808ff6894de91
parent4bc9a8989426d140e66360531b02b6aff7be61f3 (diff)
More DNS-tests.
-rwxr-xr-xt/test-custodian-testfactory.rb13
1 files changed, 13 insertions, 0 deletions
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