diff options
author | Steve Kemp <steve@steve.org.uk> | 2013-11-22 13:06:41 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2013-11-22 13:06:41 +0000 |
commit | 1b01ec3b7d59ee1316bea78ea17b8bf0002dda87 (patch) | |
tree | 15101f5246c4c8303088294a255066342c8cddee /t | |
parent | 9f409afb0f2346376dd41403b845956dab154567 (diff) |
Updated tests to succeed.
Since we test dns lookups and reverse DNS lookups then we need to
update the hostnames which have aged into a broken set of tests.
Diffstat (limited to 't')
-rwxr-xr-x | t/test-custodian-util-dns.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/t/test-custodian-util-dns.rb b/t/test-custodian-util-dns.rb index 6410dd8..40ebb99 100755 --- a/t/test-custodian-util-dns.rb +++ b/t/test-custodian-util-dns.rb @@ -33,14 +33,14 @@ class TestDNSUtil < Test::Unit::TestCase # # IPv6 lookup # - details = Custodian::Util::DNS.hostname_to_ip( "ipv6.steve.org.uk" ) - assert( details == "2001:41c8:125:40::80" ) + details = Custodian::Util::DNS.hostname_to_ip( "bytemark.co.uk" ) + assert( details == "212.110.161.236" ) # # IPv4 lookup # - details = Custodian::Util::DNS.hostname_to_ip( "ipv4.steve.org.uk" ) - assert( details == "80.68.85.40" ) + details = Custodian::Util::DNS.hostname_to_ip( "www.bytemark.co.uk" ) + assert( details == "212.110.161.236" ) # # Failure case @@ -59,14 +59,14 @@ class TestDNSUtil < Test::Unit::TestCase # # IPv6 lookup # - details = Custodian::Util::DNS.ip_to_hostname( "2001:41c8:125:46::22" ) - assert( details =~ /ssh.steve.org.uk/i ) + details = Custodian::Util::DNS.ip_to_hostname( "2001:41c8:2::5" ) + assert( details =~ /bytemark.co.uk/i ) # # IPv4 lookup # - details = Custodian::Util::DNS.ip_to_hostname( "80.68.85.48" ) - assert( details =~ /ssh.steve.org.uk/i ) + details = Custodian::Util::DNS.ip_to_hostname( "212.110.161.236" ) + assert( details =~ /bytemark.co.uk/i ) # # Bogus lookup - should return nil. |