From 0905419ce5c5d93fe7bb8394df72a6bc4106bafe Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 22 Nov 2013 13:06:41 +0000 Subject: 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. --- t/test-custodian-util-dns.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 't') 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. -- cgit v1.2.1