Permalink
Browse files

Updated whois.rrpproxy.net parser to the new response format

  • Loading branch information...
1 parent e5eda87 commit 57439f7c80314a2ad9a9e5c461abc5606fa8a1b2 @weppos committed Feb 25, 2014
View
2 CHANGELOG.md
@@ -19,6 +19,8 @@
- CHANGED: Updated whois.pandi.or.id parser to the new response format.
+- CHANGED: Updated whois.rrpproxy.net parser to the new response format.
+
- CHANGED: Afilias is using a slightly different whois response for some TLDs, including .INFO and .XXX (GH-304)
View
86 lib/whois/record/parser/whois.rrpproxy.net.rb
@@ -20,89 +20,13 @@ class Parser
# @see Whois::Record::Parser::Example
# The Example parser for the list of all available methods.
#
- class WhoisRrpproxyNet < Base
- include Scanners::Scannable
+ class WhoisRrpproxyNet < BaseIcannCompliant
+ self.scanner = Scanners::BaseIcannCompliant, {
+ pattern_available: /^No match for "[\w\.]+"\.\n/
+ }
- self.scanner = Scanners::BaseShared3
-
- property_supported :disclaimer do
- node("field:disclaimer")
- end
-
-
- property_supported :domain do
- node('DOMAIN', &:downcase)
- end
-
- property_not_supported :domain_id
-
-
- property_supported :status do
- if available?
- :available
- else
- :registered
- end
- end
-
- property_supported :available? do
- !!node("status:available")
- end
-
- property_supported :registered? do
- !available?
- end
-
- property_supported :registrar do
- return unless registered?
- Record::Registrar.new(
- name: 'Key-Systems',
- organization: 'Key-Systems GmbH',
- url: 'http://www.domaindiscount24.com/'
- )
- end
-
- property_supported :registrant_contacts do
- build_contact('owner', Whois::Record::Contact::TYPE_REGISTRANT)
- end
-
- property_supported :admin_contacts do
- build_contact('admin', Whois::Record::Contact::TYPE_ADMINISTRATIVE)
- end
-
- property_supported :technical_contacts do
- build_contact('tech', Whois::Record::Contact::TYPE_TECHNICAL)
- end
-
- property_supported :nameservers do
- node('nameserver') do |array|
- array.map do |name|
- Nameserver.new(name: name)
- end
- end
- end
-
- private
-
- def build_contact(element, type)
- node("#{element}-contact") do
- Record::Contact.new(
- type: type,
- id: node("#{element}-contact"),
- name: [node("#{element}-fname"), node("#{element}-lname")].join(' '),
- organization: node("#{element}-organization"),
- address: node("#{element}-street"),
- city: node("#{element}-city"),
- zip: node("#{element}-zip"),
- state: nil,
- country_code: node("#{element}-country"),
- phone: node("#{element}-phone"),
- fax: node("#{element}-fax"),
- email: node("#{element}-email")
- )
- end
- end
+ property_not_supported :expires_on
end
View
16 spec/fixtures/responses/whois.rrpproxy.net/status_available.expected
@@ -1,12 +1,8 @@
-#disclaimer
- %s == "The data in the WHOIS database of Key-Systems GmbH is provided by Key-Systems GmbH for information purposes, and to assist persons in obtaining information about or related to domain name registration records. Key-Systems GmbH does not guarantee its accuracy. By submitting a WHOIS query, you agree that you will use this data only for lawful purposes and that, under no circumstances, you will use this data to 1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via E-mail (spam); or 2) enable high volume, automated, electronic processes that apply to Key-Systems GmbH or its systems. Key-Systems GmbH reserves the right to modify these terms. By submitting"
-
-
#domain
%s == nil
#domain_id
- %s %ERROR{AttributeNotSupported}
+ %s == nil
#status
@@ -19,6 +15,16 @@
%s == false
+#created_on
+ %s == nil
+
+#updated_on
+ %s == nil
+
+#expires_on
+ %s %ERROR{AttributeNotSupported}
+
+
#registrar
%s == nil
View
58 spec/fixtures/responses/whois.rrpproxy.net/status_available.txt
@@ -1,15 +1,43 @@
-; The data in the WHOIS database of Key-Systems GmbH is provided by
-; Key-Systems GmbH for information purposes, and to assist persons in
-; obtaining information about or related to domain name registration
-; records. Key-Systems GmbH does not guarantee its accuracy.
-; By submitting a WHOIS query, you agree that you will use this data
-; only for lawful purposes and that, under no circumstances, you will
-; use this data to
-; 1) allow, enable, or otherwise support the transmission of mass
-; unsolicited, commercial advertising or solicitations via E-mail
-; (spam); or
-; 2) enable high volume, automated, electronic processes that apply
-; to Key-Systems GmbH or its systems.
-; Key-Systems GmbH reserves the right to modify these terms.
-; By submitting
-not found...
+
+Whois Server Version 2.0
+
+Domain names in the .com and .net domains can now be registered
+with many different competing registrars. Go to http://www.internic.net
+for detailed information.
+
+No match for "U34JEDZCQ.COM".
+>>> Last update of whois database: Tue, 25 Feb 2014 10:54:01 UTC <<<
+
+NOTICE: The expiration date displayed in this record is the date the
+registrar's sponsorship of the domain name registration in the registry is
+currently set to expire. This date does not necessarily reflect the expiration
+date of the domain name registrant's agreement with the sponsoring
+registrar. Users may consult the sponsoring registrar's Whois database to
+view the registrar's reported date of expiration for this registration.
+
+TERMS OF USE: You are not authorized to access or query our Whois
+database through the use of electronic processes that are high-volume and
+automated except as reasonably necessary to register domain names or
+modify existing registrations; the Data in VeriSign Global Registry
+Services' ("VeriSign") Whois database is provided by VeriSign for
+information purposes only, and to assist persons in obtaining information
+about or related to a domain name registration record. VeriSign does not
+guarantee its accuracy. By submitting a Whois query, you agree to abide
+by the following terms of use: You agree that you may use this Data only
+for lawful purposes and that under no circumstances will you use this Data
+to: (1) allow, enable, or otherwise support the transmission of mass
+unsolicited, commercial advertising or solicitations via e-mail, telephone,
+or facsimile; or (2) enable high volume, automated, electronic processes
+that apply to VeriSign (or its computer systems). The compilation,
+repackaging, dissemination or other use of this Data is expressly
+prohibited without the prior written consent of VeriSign. You agree not to
+use electronic processes that are automated and high-volume to access or
+query the Whois database except as reasonably necessary to register
+domain names or modify existing registrations. VeriSign reserves the right
+to restrict your access to the Whois database in its sole discretion to ensure
+operational stability. VeriSign may restrict or terminate your access to the
+Whois database for failure to abide by these terms of use. VeriSign
+reserves the right to modify these terms at any time.
+
+The Registry database contains ONLY .COM, .NET, .EDU domains and
+Registrars.
View
102 spec/fixtures/responses/whois.rrpproxy.net/status_registered.expected
@@ -1,12 +1,8 @@
-#disclaimer
- %s == "This data is provided by Hosting Concepts for information purposes, and to assist persons obtaining information about or related to domain name registration records. Hosting Concepts does not guarantee its accuracy. By submitting a WHOIS query, you agree that you will use this data only for lawful purposes and that, under no circumstances, you will use this data to 1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via E-mail (spam); or 2) enable high volume, automated, electronic processes that apply to this WHOIS server. These terms may be changed without prior notice. By submitting this query, you agree to abide by this policy."
-
-
#domain
- %s == "openprovider.com"
+ %s == "multisafepay.com"
#domain_id
- %s %ERROR{AttributeNotSupported}
+ %s == "334322677_DOMAIN_COM-VRSN"
#status
@@ -19,71 +15,95 @@
%s == true
+#created_on
+ %s %CLASS{time}
+ %s %TIME{2006-02-03 19:44:56 UTC}
+
+#updated_on
+ %s %CLASS{time}
+ %s %TIME{2014-02-04 08:34:14 UTC}
+
+#expires_on
+ %s %ERROR{AttributeNotSupported}
+
+
#registrar
%s %CLASS{registrar}
- %s.name == "Key-Systems"
+ %s.id == "269"
+ %s.name == "Key-Systems GmbH"
%s.organization == "Key-Systems GmbH"
- %s.url == "http://www.domaindiscount24.com/"
+ %s.url == "http://www.reasonnet.com"
#registrant_contacts
%s %CLASS{array}
%s %SIZE{1}
%s[0] %CLASS{contact}
%s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
- %s[0].id == "P-AEV84"
- %s[0].name == "Arno Vis"
- %s[0].organization == "Openprovider"
- %s[0].address == "Willem Buytewechstraat 40"
- %s[0].city == "Rotterdam"
- %s[0].zip == "3024 BN"
+ %s[0].id == "P-DQJ547"
+ %s[0].name == "David Jacobs"
+ %s[0].organization == "ReasonNet B.V."
+ %s[0].address == "Gyroscoopweg 134"
+ %s[0].city == "Amsterdam"
+ %s[0].zip == "1042 AZ"
+ %s[0].state == "NH"
%s[0].country == nil
%s[0].country_code == "NL"
- %s[0].phone == "+31 104482299"
- %s[0].fax == "+31 102440250"
- %s[0].email == "domreg@openprovider.nl"
+ %s[0].phone == "+31.205060035"
+ %s[0].fax == "+31.205060038"
+ %s[0].email == "domains@reasonnet.com"
+ %s[0].created_on == nil
+ %s[0].updated_on == nil
#admin_contacts
%s %CLASS{array}
%s %SIZE{1}
%s[0] %CLASS{contact}
%s[0].type == Whois::Record::Contact::TYPE_ADMINISTRATIVE
- %s[0].id == "P-AEV84"
- %s[0].name == "Arno Vis"
- %s[0].organization == "Openprovider"
- %s[0].address == "Willem Buytewechstraat 40"
- %s[0].city == "Rotterdam"
- %s[0].zip == "3024 BN"
+ %s[0].id == "P-OEG220"
+ %s[0].name == "Olaf Geurs"
+ %s[0].organization == "ION"
+ %s[0].address == "Vlierweg 12"
+ %s[0].city == "Amsterdam"
+ %s[0].zip == "1032 LG"
+ %s[0].state == "NH"
%s[0].country == nil
%s[0].country_code == "NL"
- %s[0].phone == "+31 104482299"
- %s[0].fax == "+31 102440250"
- %s[0].email == "domreg@openprovider.nl"
+ %s[0].phone == "+31.204949100"
+ %s[0].fax == ""
+ %s[0].email == "domains@reasonnet.com"
+ %s[0].created_on == nil
+ %s[0].updated_on == nil
#technical_contacts
%s %CLASS{array}
%s %SIZE{1}
%s[0] %CLASS{contact}
%s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
- %s[0].id == "P-AEV84"
- %s[0].name == "Arno Vis"
- %s[0].organization == "Openprovider"
- %s[0].address == "Willem Buytewechstraat 40"
- %s[0].city == "Rotterdam"
- %s[0].zip == "3024 BN"
+ %s[0].id == "P-OEG220"
+ %s[0].name == "Olaf Geurs"
+ %s[0].organization == "ION"
+ %s[0].address == "Vlierweg 12"
+ %s[0].city == "Amsterdam"
+ %s[0].zip == "1032 LG"
+ %s[0].state == "NH"
%s[0].country == nil
%s[0].country_code == "NL"
- %s[0].phone == "+31 104482299"
- %s[0].fax == "+31 102440250"
- %s[0].email == "domreg@openprovider.nl"
+ %s[0].phone == "+31.204949100"
+ %s[0].fax == ""
+ %s[0].email == "domains@reasonnet.com"
+ %s[0].created_on == nil
+ %s[0].updated_on == nil
#nameservers
%s %CLASS{array}
- %s %SIZE{3}
- %s[0] %CLASS{nameserver}
- %s[0].name == "ns1.openprovider.nl"
- %s[0] %CLASS{nameserver}
- %s[1].name == "ns2.openprovider.be"
+ %s %SIZE{2}
%s[0] %CLASS{nameserver}
- %s[2].name == "ns3.openprovider.eu"
+ %s[0].name == "ns.teletik.nl"
+ %s[0].ipv4 == nil
+ %s[0].ipv6 == nil
+ %s[1] %CLASS{nameserver}
+ %s[1].name == "ns3.teletik.nl"
+ %s[1].ipv4 == nil
+ %s[1].ipv6 == nil
View
156 spec/fixtures/responses/whois.rrpproxy.net/status_registered.txt
@@ -1,71 +1,85 @@
-; This data is provided by Hosting Concepts
-; for information purposes, and to assist persons obtaining information
-; about or related to domain name registration records.
-; Hosting Concepts does not guarantee its accuracy.
-; By submitting a WHOIS query, you agree that you will use this data
-; only for lawful purposes and that, under no circumstances, you will
-; use this data to
-; 1) allow, enable, or otherwise support the transmission of mass
-; unsolicited, commercial advertising or solicitations via E-mail
-; (spam); or
-; 2) enable high volume, automated, electronic processes that apply
-; to this WHOIS server.
-; These terms may be changed without prior notice.
-; By submitting this query, you agree to abide by this policy.
-
-DOMAIN: OPENPROVIDER.COM
-
-RSP: Hosting Concepts
-URL: -
-
-owner-contact: P-AEV84
-owner-organization: Openprovider
-owner-fname: Arno
-owner-lname: Vis
-owner-street: Willem Buytewechstraat 40
-owner-city: Rotterdam
-owner-zip: 3024 BN
-owner-country: NL
-owner-phone: +31 104482299
-owner-fax: +31 102440250
-owner-email: domreg@openprovider.nl
-
-admin-contact: P-AEV84
-admin-organization: Openprovider
-admin-fname: Arno
-admin-lname: Vis
-admin-street: Willem Buytewechstraat 40
-admin-city: Rotterdam
-admin-zip: 3024 BN
-admin-country: NL
-admin-phone: +31 104482299
-admin-fax: +31 102440250
-admin-email: domreg@openprovider.nl
-
-tech-contact: P-AEV84
-tech-organization: Openprovider
-tech-fname: Arno
-tech-lname: Vis
-tech-street: Willem Buytewechstraat 40
-tech-city: Rotterdam
-tech-zip: 3024 BN
-tech-country: NL
-tech-phone: +31 104482299
-tech-fax: +31 102440250
-tech-email: domreg@openprovider.nl
-
-billing-contact: P-AZV772
-billing-organization: Hosting Concepts
-billing-fname: Arno
-billing-lname: Vis
-billing-street: Nieuwe Binnenweg 137
-billing-city: Rotterdam
-billing-zip: 3014 GJ
-billing-country: NL
-billing-phone: +31 10 4482299
-billing-fax: +31 10 2440250
-billing-email: domreg@openprovider.nl
-
-nameserver: ns1.openprovider.nl
-nameserver: ns2.openprovider.be
-nameserver: ns3.openprovider.eu
+Domain Name: multisafepay.com
+Registry Domain ID: 334322677_DOMAIN_COM-VRSN
+Registrar WHOIS Server: whois.rrpproxy.net
+Registrar URL: http://www.reasonnet.com
+Updated Date: 2014-02-04T08:34:14.0Z
+Creation Date: 2006-02-03T19:44:56.0Z
+Registrar Registration Expiration Date: 2015-02-03T19:44:56.0Z
+Registrar: Key-Systems GmbH
+Registrar IANA ID: 269
+Registrar Abuse Contact Email: abuse[at]key-systems.net
+Registrar Abuse Contact Phone: - (Please send an email)
+Reseller: Co-locate
+Domain Status: ACTIVE
+Registry Registrant ID: P-DQJ547
+Registrant Name: David Jacobs
+Registrant Organization: ReasonNet B.V.
+Registrant Street: Gyroscoopweg 134
+Registrant City: Amsterdam
+Registrant State/Province: NH
+Registrant Postal Code: 1042 AZ
+Registrant Country: NL
+Registrant Phone: +31.205060035
+Registrant Phone Ext:
+Registrant Fax: +31.205060038
+Registrant Fax Ext:
+Registrant Email: domains@reasonnet.com
+Registry Admin ID: P-OEG220
+Admin Name: Olaf Geurs
+Admin Organization: ION
+Admin Street: Vlierweg 12
+Admin City: Amsterdam
+Admin State/Province: NH
+Admin Postal Code: 1032 LG
+Admin Country: NL
+Admin Phone: +31.204949100
+Admin Phone Ext:
+Admin Fax:
+Admin Fax Ext:
+Admin Email: domains@reasonnet.com
+Registry Tech ID: P-OEG220
+Tech Name: Olaf Geurs
+Tech Organization: ION
+Tech Street: Vlierweg 12
+Tech City: Amsterdam
+Tech Postal Code: 1032 LG
+Tech State/Province: NH
+Tech Country: NL
+Tech Phone: +31.204949100
+Tech Phone Ext:
+Tech Fax:
+Tech Fax Ext:
+Tech Email: domains@reasonnet.com
+Name Server: ns.teletik.nl
+Name Server: ns3.teletik.nl
+DNSSEC: unsigned
+URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
+>>> Last update of WHOIS database: 2014-02-25T10:53:37.0Z <<<
+
+Registry Billing ID: P-DQJ547
+Billing Name: David Jacobs
+Billing Organization: ReasonNet B.V.
+Billing Street: Gyroscoopweg 134
+Billing City: Amsterdam
+Billing State/Province: NH
+Billing Postal Code: 1042 AZ
+Billing Country: NL
+Billing Phone: +31.205060035
+Billing Phone Ext:
+Billing Fax: +31.205060038
+Billing Fax Ext:
+Billing Email: domains@reasonnet.com
+; Please register your domains at; http://www.reasonnet.com; This data is provided by Co-locate
+; for information purposes, and to assist persons obtaining information
+; about or related to domain name registration records.
+; Co-locate does not guarantee its accuracy.
+; By submitting a WHOIS query, you agree that you will use this data
+; only for lawful purposes and that, under no circumstances, you will
+; use this data to
+; 1) allow, enable, or otherwise support the transmission of mass
+; unsolicited, commercial advertising or solicitations via E-mail
+; (spam); or
+; 2) enable high volume, automated, electronic processes that apply
+; to this WHOIS server.
+; These terms may be changed without prior notice.
+; By submitting this query, you agree to abide by this policy.
View
22 spec/whois/record/parser/responses/whois.rrpproxy.net/status_available_spec.rb
@@ -21,19 +21,14 @@
described_class.new(part)
end
- describe "#disclaimer" do
- it do
- expect(subject.disclaimer).to eq("The data in the WHOIS database of Key-Systems GmbH is provided by Key-Systems GmbH for information purposes, and to assist persons in obtaining information about or related to domain name registration records. Key-Systems GmbH does not guarantee its accuracy. By submitting a WHOIS query, you agree that you will use this data only for lawful purposes and that, under no circumstances, you will use this data to 1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via E-mail (spam); or 2) enable high volume, automated, electronic processes that apply to Key-Systems GmbH or its systems. Key-Systems GmbH reserves the right to modify these terms. By submitting")
- end
- end
describe "#domain" do
it do
expect(subject.domain).to eq(nil)
end
end
describe "#domain_id" do
it do
- expect { subject.domain_id }.to raise_error(Whois::AttributeNotSupported)
+ expect(subject.domain_id).to eq(nil)
end
end
describe "#status" do
@@ -51,6 +46,21 @@
expect(subject.registered?).to eq(false)
end
end
+ describe "#created_on" do
+ it do
+ expect(subject.created_on).to eq(nil)
+ end
+ end
+ describe "#updated_on" do
+ it do
+ expect(subject.updated_on).to eq(nil)
+ end
+ end
+ describe "#expires_on" do
+ it do
+ expect { subject.expires_on }.to raise_error(Whois::AttributeNotSupported)
+ end
+ end
describe "#registrar" do
it do
expect(subject.registrar).to eq(nil)
View
108 spec/whois/record/parser/responses/whois.rrpproxy.net/status_registered_spec.rb
@@ -21,19 +21,14 @@
described_class.new(part)
end
- describe "#disclaimer" do
- it do
- expect(subject.disclaimer).to eq("This data is provided by Hosting Concepts for information purposes, and to assist persons obtaining information about or related to domain name registration records. Hosting Concepts does not guarantee its accuracy. By submitting a WHOIS query, you agree that you will use this data only for lawful purposes and that, under no circumstances, you will use this data to 1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via E-mail (spam); or 2) enable high volume, automated, electronic processes that apply to this WHOIS server. These terms may be changed without prior notice. By submitting this query, you agree to abide by this policy.")
- end
- end
describe "#domain" do
it do
- expect(subject.domain).to eq("openprovider.com")
+ expect(subject.domain).to eq("multisafepay.com")
end
end
describe "#domain_id" do
it do
- expect { subject.domain_id }.to raise_error(Whois::AttributeNotSupported)
+ expect(subject.domain_id).to eq("334322677_DOMAIN_COM-VRSN")
end
end
describe "#status" do
@@ -51,12 +46,30 @@
expect(subject.registered?).to eq(true)
end
end
+ describe "#created_on" do
+ it do
+ expect(subject.created_on).to be_a(Time)
+ expect(subject.created_on).to eq(Time.parse("2006-02-03 19:44:56 UTC"))
+ end
+ end
+ describe "#updated_on" do
+ it do
+ expect(subject.updated_on).to be_a(Time)
+ expect(subject.updated_on).to eq(Time.parse("2014-02-04 08:34:14 UTC"))
+ end
+ end
+ describe "#expires_on" do
+ it do
+ expect { subject.expires_on }.to raise_error(Whois::AttributeNotSupported)
+ end
+ end
describe "#registrar" do
it do
expect(subject.registrar).to be_a(Whois::Record::Registrar)
- expect(subject.registrar.name).to eq("Key-Systems")
+ expect(subject.registrar.id).to eq("269")
+ expect(subject.registrar.name).to eq("Key-Systems GmbH")
expect(subject.registrar.organization).to eq("Key-Systems GmbH")
- expect(subject.registrar.url).to eq("http://www.domaindiscount24.com/")
+ expect(subject.registrar.url).to eq("http://www.reasonnet.com")
end
end
describe "#registrant_contacts" do
@@ -65,17 +78,20 @@
expect(subject.registrant_contacts).to have(1).items
expect(subject.registrant_contacts[0]).to be_a(Whois::Record::Contact)
expect(subject.registrant_contacts[0].type).to eq(Whois::Record::Contact::TYPE_REGISTRANT)
- expect(subject.registrant_contacts[0].id).to eq("P-AEV84")
- expect(subject.registrant_contacts[0].name).to eq("Arno Vis")
- expect(subject.registrant_contacts[0].organization).to eq("Openprovider")
- expect(subject.registrant_contacts[0].address).to eq("Willem Buytewechstraat 40")
- expect(subject.registrant_contacts[0].city).to eq("Rotterdam")
- expect(subject.registrant_contacts[0].zip).to eq("3024 BN")
+ expect(subject.registrant_contacts[0].id).to eq("P-DQJ547")
+ expect(subject.registrant_contacts[0].name).to eq("David Jacobs")
+ expect(subject.registrant_contacts[0].organization).to eq("ReasonNet B.V.")
+ expect(subject.registrant_contacts[0].address).to eq("Gyroscoopweg 134")
+ expect(subject.registrant_contacts[0].city).to eq("Amsterdam")
+ expect(subject.registrant_contacts[0].zip).to eq("1042 AZ")
+ expect(subject.registrant_contacts[0].state).to eq("NH")
expect(subject.registrant_contacts[0].country).to eq(nil)
expect(subject.registrant_contacts[0].country_code).to eq("NL")
- expect(subject.registrant_contacts[0].phone).to eq("+31 104482299")
- expect(subject.registrant_contacts[0].fax).to eq("+31 102440250")
- expect(subject.registrant_contacts[0].email).to eq("domreg@openprovider.nl")
+ expect(subject.registrant_contacts[0].phone).to eq("+31.205060035")
+ expect(subject.registrant_contacts[0].fax).to eq("+31.205060038")
+ expect(subject.registrant_contacts[0].email).to eq("domains@reasonnet.com")
+ expect(subject.registrant_contacts[0].created_on).to eq(nil)
+ expect(subject.registrant_contacts[0].updated_on).to eq(nil)
end
end
describe "#admin_contacts" do
@@ -84,17 +100,20 @@
expect(subject.admin_contacts).to have(1).items
expect(subject.admin_contacts[0]).to be_a(Whois::Record::Contact)
expect(subject.admin_contacts[0].type).to eq(Whois::Record::Contact::TYPE_ADMINISTRATIVE)
- expect(subject.admin_contacts[0].id).to eq("P-AEV84")
- expect(subject.admin_contacts[0].name).to eq("Arno Vis")
- expect(subject.admin_contacts[0].organization).to eq("Openprovider")
- expect(subject.admin_contacts[0].address).to eq("Willem Buytewechstraat 40")
- expect(subject.admin_contacts[0].city).to eq("Rotterdam")
- expect(subject.admin_contacts[0].zip).to eq("3024 BN")
+ expect(subject.admin_contacts[0].id).to eq("P-OEG220")
+ expect(subject.admin_contacts[0].name).to eq("Olaf Geurs")
+ expect(subject.admin_contacts[0].organization).to eq("ION")
+ expect(subject.admin_contacts[0].address).to eq("Vlierweg 12")
+ expect(subject.admin_contacts[0].city).to eq("Amsterdam")
+ expect(subject.admin_contacts[0].zip).to eq("1032 LG")
+ expect(subject.admin_contacts[0].state).to eq("NH")
expect(subject.admin_contacts[0].country).to eq(nil)
expect(subject.admin_contacts[0].country_code).to eq("NL")
- expect(subject.admin_contacts[0].phone).to eq("+31 104482299")
- expect(subject.admin_contacts[0].fax).to eq("+31 102440250")
- expect(subject.admin_contacts[0].email).to eq("domreg@openprovider.nl")
+ expect(subject.admin_contacts[0].phone).to eq("+31.204949100")
+ expect(subject.admin_contacts[0].fax).to eq("")
+ expect(subject.admin_contacts[0].email).to eq("domains@reasonnet.com")
+ expect(subject.admin_contacts[0].created_on).to eq(nil)
+ expect(subject.admin_contacts[0].updated_on).to eq(nil)
end
end
describe "#technical_contacts" do
@@ -103,29 +122,34 @@
expect(subject.technical_contacts).to have(1).items
expect(subject.technical_contacts[0]).to be_a(Whois::Record::Contact)
expect(subject.technical_contacts[0].type).to eq(Whois::Record::Contact::TYPE_TECHNICAL)
- expect(subject.technical_contacts[0].id).to eq("P-AEV84")
- expect(subject.technical_contacts[0].name).to eq("Arno Vis")
- expect(subject.technical_contacts[0].organization).to eq("Openprovider")
- expect(subject.technical_contacts[0].address).to eq("Willem Buytewechstraat 40")
- expect(subject.technical_contacts[0].city).to eq("Rotterdam")
- expect(subject.technical_contacts[0].zip).to eq("3024 BN")
+ expect(subject.technical_contacts[0].id).to eq("P-OEG220")
+ expect(subject.technical_contacts[0].name).to eq("Olaf Geurs")
+ expect(subject.technical_contacts[0].organization).to eq("ION")
+ expect(subject.technical_contacts[0].address).to eq("Vlierweg 12")
+ expect(subject.technical_contacts[0].city).to eq("Amsterdam")
+ expect(subject.technical_contacts[0].zip).to eq("1032 LG")
+ expect(subject.technical_contacts[0].state).to eq("NH")
expect(subject.technical_contacts[0].country).to eq(nil)
expect(subject.technical_contacts[0].country_code).to eq("NL")
- expect(subject.technical_contacts[0].phone).to eq("+31 104482299")
- expect(subject.technical_contacts[0].fax).to eq("+31 102440250")
- expect(subject.technical_contacts[0].email).to eq("domreg@openprovider.nl")
+ expect(subject.technical_contacts[0].phone).to eq("+31.204949100")
+ expect(subject.technical_contacts[0].fax).to eq("")
+ expect(subject.technical_contacts[0].email).to eq("domains@reasonnet.com")
+ expect(subject.technical_contacts[0].created_on).to eq(nil)
+ expect(subject.technical_contacts[0].updated_on).to eq(nil)
end
end
describe "#nameservers" do
it do
expect(subject.nameservers).to be_a(Array)
- expect(subject.nameservers).to have(3).items
- expect(subject.nameservers[0]).to be_a(Whois::Record::Nameserver)
- expect(subject.nameservers[0].name).to eq("ns1.openprovider.nl")
- expect(subject.nameservers[0]).to be_a(Whois::Record::Nameserver)
- expect(subject.nameservers[1].name).to eq("ns2.openprovider.be")
+ expect(subject.nameservers).to have(2).items
expect(subject.nameservers[0]).to be_a(Whois::Record::Nameserver)
- expect(subject.nameservers[2].name).to eq("ns3.openprovider.eu")
+ expect(subject.nameservers[0].name).to eq("ns.teletik.nl")
+ expect(subject.nameservers[0].ipv4).to eq(nil)
+ expect(subject.nameservers[0].ipv6).to eq(nil)
+ expect(subject.nameservers[1]).to be_a(Whois::Record::Nameserver)
+ expect(subject.nameservers[1].name).to eq("ns3.teletik.nl")
+ expect(subject.nameservers[1].ipv4).to eq(nil)
+ expect(subject.nameservers[1].ipv6).to eq(nil)
end
end
end

0 comments on commit 57439f7

Please sign in to comment.