forked from weppos/whois-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
weppos#133 The whole response format was changed in 2016, this commit changes the tests, the scanner and the parser in order to respond to the change. Co-authored-by: Petri Salminen <[email protected]>
- Loading branch information
Showing
14 changed files
with
372 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#disclaimer | ||
%s == "More information is available at https://domain.fi/\nCopyright (c) Finnish Communications Regulatory Authority" | ||
%s == "Copyright (c) Finnish Transport and Communications Agency Traficom" | ||
|
||
|
||
#domain | ||
%s == "oogle.fi" | ||
%s == "kalatalousministeri.fi" | ||
|
||
#domain_id | ||
%s %ERROR{AttributeNotSupported} | ||
|
@@ -21,51 +21,69 @@ | |
|
||
#created_on | ||
%s %CLASS{time} | ||
%s %TIME{2012-06-21} | ||
%s %TIME{2018-03-14 17:47:42} | ||
|
||
#updated_on | ||
%s %CLASS{time} | ||
%s %TIME{2013-06-22} | ||
%s %TIME{2019-11-06} | ||
|
||
#expires_on | ||
%s %CLASS{time} | ||
%s %TIME{2013-06-21} | ||
%s %TIME{2020-03-14 17:47:42} | ||
|
||
|
||
#registrar | ||
%s %ERROR{AttributeNotSupported} | ||
%s.name == "Gandi SAS" | ||
%s.url == "www.gandi.net" | ||
|
||
#registrant_contacts | ||
%s %ERROR{AttributeNotSupported} | ||
|
||
#admin_contacts | ||
%s %CLASS{array} | ||
%s %SIZE{1} | ||
%s[0] %CLASS{contact} | ||
%s[0].type == Whois::Parser::Contact::TYPE_REGISTRANT | ||
%s[0].id == "NURMI" | ||
%s[0].name == "-" | ||
%s[0].organization == "Minna" | ||
%s[0].address == "Huovitie 3" | ||
%s[0].city == "HELSINKI" | ||
%s[0].zip == "00400" | ||
%s[0].type == Whois::Parser::Contact::TYPE_ADMINISTRATIVE | ||
%s[0].id == "2823344-7" | ||
%s[0].name == "Digiteam Oy" | ||
%s[0].address == "Myllyniityntie 71" | ||
%s[0].city == "Lohja" | ||
%s[0].zip == "08100" | ||
%s[0].state == nil | ||
%s[0].country == nil | ||
%s[0].country == "Finland" | ||
%s[0].country_code == nil | ||
%s[0].phone == "+358201599789" | ||
%s[0].phone == "+358.503716096" | ||
%s[0].fax == nil | ||
%s[0].email == nil | ||
%s[0].email == "" | ||
%s[0].created_on == nil | ||
%s[0].updated_on == nil | ||
|
||
#admin_contacts | ||
%s %ERROR{AttributeNotSupported} | ||
|
||
#technical_contacts | ||
%s %ERROR{AttributeNotSupported} | ||
%s %CLASS{array} | ||
%s %SIZE{1} | ||
%s[0] %CLASS{contact} | ||
%s[0].type == Whois::Parser::Contact::TYPE_TECHNICAL | ||
%s[0].id == nil | ||
%s[0].name == "Seravo Oy" | ||
%s[0].address == nil | ||
%s[0].city == nil | ||
%s[0].zip == nil | ||
%s[0].state == nil | ||
%s[0].country == nil | ||
%s[0].country_code == nil | ||
%s[0].phone == nil | ||
%s[0].fax == nil | ||
%s[0].email == "[email protected]" | ||
%s[0].created_on == nil | ||
%s[0].updated_on == nil | ||
|
||
|
||
#nameservers | ||
%s %CLASS{array} | ||
%s %SIZE{2} | ||
%s %SIZE{3} | ||
%s[0] %CLASS{nameserver} | ||
%s[0].name == "a.ns.netim.net" | ||
%s[0].name == "ns-184-c.gandi.net" | ||
%s[1] %CLASS{nameserver} | ||
%s[1].name == "b.ns.netim.net" | ||
%s[1].name == "ns-196-a.gandi.net" | ||
%s[2] %CLASS{nameserver} | ||
%s[2].name == "ns-73-b.gandi.net" |
64 changes: 44 additions & 20 deletions
64
spec/fixtures/responses/whois.fi/fi/property_status_graceperiod.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,45 @@ | ||
IP: UNABLE TO RESOLVE | ||
|
||
domain: oogle.fi | ||
descr: Minna | ||
descr: NURMI | ||
address: - | ||
address: Huovitie 3 | ||
address: 00400 | ||
address: HELSINKI | ||
phone: +358201599789 | ||
status: Grace Period | ||
created: 21.6.2012 | ||
modified: 22.6.2013 | ||
expires: 21.6.2013 | ||
nserver: a.ns.netim.net [Ok] | ||
nserver: b.ns.netim.net [Ok] | ||
dnssec: no | ||
|
||
More information is available at https://domain.fi/ | ||
Copyright (c) Finnish Communications Regulatory Authority | ||
|
||
domain.............: kalatalousministeri.fi | ||
status.............: Grace Period | ||
created............: 14.3.2018 17:47:42 | ||
expires............: 14.3.2020 17:47:42 | ||
available..........: 14.4.2020 17:47:42 | ||
modified...........: 6.11.2019 | ||
RegistryLock.......: no | ||
|
||
Nameservers | ||
|
||
nserver............: ns-184-c.gandi.net [OK] | ||
nserver............: ns-196-a.gandi.net [OK] | ||
nserver............: ns-73-b.gandi.net [OK] | ||
|
||
DNSSEC | ||
|
||
dnssec.............: no | ||
|
||
Holder | ||
|
||
name...............: Digiteam Oy | ||
register number....: 2823344-7 | ||
address............: Myllyniityntie 71 | ||
address............: 08100 | ||
address............: Lohja | ||
country............: Finland | ||
phone..............: +358.503716096 | ||
holder email.......: | ||
|
||
Registrar | ||
|
||
registrar..........: Gandi SAS | ||
www................: www.gandi.net | ||
|
||
Tech | ||
|
||
name...............: Seravo Oy | ||
email..............: [email protected] | ||
|
||
>>> Last update of WHOIS database: 22.3.2020 13:47:27 (EET) <<< | ||
|
||
|
||
Copyright (c) Finnish Transport and Communications Agency Traficom | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
|
||
Domain not found | ||
|
||
More information is available at https://domain.fi/ | ||
Copyright (c) Finnish Communications Regulatory Authority | ||
Copyright (c) Finnish Transport and Communications Agency Traficom | ||
|
Oops, something went wrong.