summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-11-22 13:06:41 +0000
committerSteve Kemp <steve@steve.org.uk>2013-11-22 13:06:41 +0000
commit0905419ce5c5d93fe7bb8394df72a6bc4106bafe (patch)
tree2b12e832e2c1df864acf1d15090b6625784e74c6 /t
parentce96e7c82fd60c77862f5e3d633f6756a1867a55 (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-xt/test-custodian-util-dns.rb16
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.