diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2014-12-11 12:43:47 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2014-12-11 12:43:47 +0000 |
commit | 2adfccca3ac97bedeaec092ba621db17ac0cf004 (patch) | |
tree | b6636134101c74c2006624745c4679ca9f17f566 /t/test-dns-types | |
parent | 84dd6a2c9078a70424f5b7a771f2c49b5d478ace (diff) |
Moved test-dns-types so that it gets included in the test suite.
Added test for run_test.
Diffstat (limited to 't/test-dns-types')
-rwxr-xr-x | t/test-dns-types | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/t/test-dns-types b/t/test-dns-types deleted file mode 100755 index dba7a3c..0000000 --- a/t/test-dns-types +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/ruby -Ilib/ -I../lib/ - - -require 'test/unit' - -require 'custodian/protocoltests' - - - -# -# The DNS test is a complex one. -# -class TestDNSTypes < Test::Unit::TestCase - - # - # Create the test suite environment: NOP. - # - def setup - end - - # - # Destroy the test suite environment: NOP. - # - def teardown - end - - - # - # Test the known-record types: A, NS, MX, AAAA - # - def test_known_types - - assert_nothing_raised do - test = Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns for bytemark.co.uk resolving NS as 'foo'." ) - test = Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns for bytemark.co.uk resolving A as 'foo'." ) - test = Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns for bytemark.co.uk resolving MX as 'foo'." ) - test = Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns for bytemark.co.uk resolving AAAA as 'foo'." ) - end - - end - - - - # - # Test that using random types fails. - # - def test_unknown_types - - # - # Each of these will fail - # - %w( a ns www example fdskfjdlfsj `` ).each do |res| - assert_raise ArgumentError do - Custodian::TestFactory.create( "a.ns.bytemark.co.uk must run dns for bytemark.co.uk resolving #{res} as 'foo'." ) - end - end - end - - -end - |