Permalink
Browse files

Add test suite for whois.godaddy.com

  • Loading branch information...
pmyteh committed Aug 4, 2011
1 parent 6580563 commit 5f95f1457ca47693104e11162456333c557ba95c
@@ -0,0 +1,86 @@
+#status
+ should: %s raise_error(Whois::PropertyNotSupported)
+
+#available?
+ should: %s == false
+
+#registered?
+ should: %s == true
+
+#created_on
+ should: %s be_a(Time)
+ should: %s == Time.parse("02-Mar-99")
+
+#updated_on
+ should: %s be_a(Time)
+ should: %s == Time.parse("21-Oct-10")
+
+#expires_on
+ should: %s be_a(Time)
+ should: %s == Time.parse("02-Mar-19")
+
+
+#registrar
+ should: %s be_a(_registrar)
+ should: %s.id == nil
+ should: %s.name == "GoDaddy.com, Inc."
+ should: %s.url == "http://www.godaddy.com"
+
+#registrant_contacts
+ should: %s be_a(Array)
+ should: %s have(1).items
+ should: %s[0] be_a(_contact)
+ should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
+ should: %s[0].name == "GoDaddy.com, Inc."
+ should: %s[0].organization == ""
+ should: %s[0].address == "14455 N Hayden Rd Suite 219"
+ should: %s[0].city == "Scottsdale"
+ should: %s[0].zip == "85260"
+ should: %s[0].state == "Arizona"
+ should: %s[0].country_code == "United States"
+ should: %s[0].phone == ""
+ should: %s[0].fax == ""
+ should: %s[0].email == ""
+
+#admin_contacts
+ should: %s be_a(Array)
+ should: %s have(1).items
+ should: %s[0] be_a(_contact)
+ should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
+ should: %s[0].name == "GoDaddy.com, Inc., GoDaddy.com, Inc."
+ should: %s[0].organization == "GoDaddy.com, Inc."
+ should: %s[0].address == "14455 N Hayden Rd Suite 219"
+ should: %s[0].city == "Scottsdale"
+ should: %s[0].zip == "85260"
+ should: %s[0].state == "Arizona"
+ should: %s[0].country_code == "United States"
+ should: %s[0].phone == "+1.4805058800"
+ should: %s[0].fax == "+1.4805058844"
+ should: %s[0].email == "dns@jomax.net"
+
+#technical_contacts
+ should: %s be_a(Array)
+ should: %s have(1).items
+ should: %s[0] be_a(_contact)
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
+ should: %s[0].name == "GoDaddy.com, Inc., GoDaddy.com, Inc."
+ should: %s[0].organization == "GoDaddy.com, Inc."
+ should: %s[0].address == "14455 N Hayden Rd Suite 219"
+ should: %s[0].city == "Scottsdale"
+ should: %s[0].zip == "85260"
+ should: %s[0].state == "Arizona"
+ should: %s[0].country_code == "United States"
+ should: %s[0].phone == "+1.4805058800"
+ should: %s[0].fax == "+1.4805058844"
+ should: %s[0].email == "dns@jomax.net"
+
+
+#nameservers
+ should: %s be_a(Array)
+ should: %s have(3).items
+ should: %s[0] be_a(_nameserver)
+ should: %s[0] == _nameserver.new(:name => "CNS1.SECURESERVER.NET")
+ should: %s[1] be_a(_nameserver)
+ should: %s[1] == _nameserver.new(:name => "CNS2.SECURESERVER.NET")
+ should: %s[2] be_a(_nameserver)
+ should: %s[2] == _nameserver.new(:name => "CNS3.SECURESERVER.NET")
@@ -0,0 +1,60 @@
+The data contained in GoDaddy.com, Inc.'s WhoIs database,
+while believed by the company to be reliable, is provided "as is"
+with no guarantee or warranties regarding its accuracy. This
+information is provided for the sole purpose of assisting you
+in obtaining information about domain name registration records.
+Any use of this data for any other purpose is expressly forbidden without the prior written
+permission of GoDaddy.com, Inc. By submitting an inquiry,
+you agree to these terms of usage and limitations of warranty. In particular,
+you agree not to use this data to allow, enable, or otherwise make possible,
+dissemination or collection of this data, in part or in its entirety, for any
+purpose, such as the transmission of unsolicited advertising and
+and solicitations of any kind, including spam. You further agree
+not to use this data to enable high volume, automated or robotic electronic
+processes designed to collect or compile this data for any purpose,
+including mining this data for your own personal or commercial purposes.
+
+Please note: the registrant of the domain name is specified
+in the "registrant" field. In most cases, GoDaddy.com, Inc.
+is not the registrant of domain names listed in this database.
+
+
+Registrant:
+ GoDaddy.com, Inc.
+ 14455 N Hayden Rd Suite 219
+ Scottsdale, Arizona 85260
+ United States
+
+ Registered through: GoDaddy.com, Inc. (http://www.godaddy.com)
+ Domain Name: GODADDY.COM
+ Created on: 02-Mar-99
+ Expires on: 02-Mar-19
+ Last Updated on: 21-Oct-10
+
+ Administrative Contact:
+ GoDaddy.com, Inc., GoDaddy.com, Inc. dns@jomax.net
+ GoDaddy.com, Inc.
+ 14455 N Hayden Rd Suite 219
+ Scottsdale, Arizona 85260
+ United States
+ +1.4805058800 Fax -- +1.4805058844
+
+ Technical Contact:
+ GoDaddy.com, Inc., GoDaddy.com, Inc. dns@jomax.net
+ GoDaddy.com, Inc.
+ 14455 N Hayden Rd Suite 219
+ Scottsdale, Arizona 85260
+ United States
+ +1.4805058800 Fax -- +1.4805058844
+
+ Domain servers in listed order:
+ CNS1.SECURESERVER.NET
+ CNS2.SECURESERVER.NET
+ CNS3.SECURESERVER.NET
+
+
+ ****************************************************
+ See Business Registration Listing
+ ****************************************************
+ Copy and paste the link below to view additional details:
+ http://who.godaddy.com/whoischeck.aspx?domain=GODADDY.COM

0 comments on commit 5f95f14

Please sign in to comment.