-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update whois.audns.net.au to match new response format #100
Open
kovalevsky
wants to merge
2
commits into
weppos:main
Choose a base branch
from
kovalevsky:update_whois_audns_com_au
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require_relative 'base' | ||
|
||
module Whois | ||
module Scanners | ||
|
||
# Scanner for the whois.auda.org.au record. | ||
class WhoisAudaOrgAu < Base | ||
|
||
self.tokenizers += [ | ||
:skip_empty_line, | ||
:scan_available, | ||
:skip_lastupdate, | ||
:scan_disclaimer, | ||
:scan_keyvalue, | ||
] | ||
|
||
tokenizer :scan_available do | ||
if @input.skip(/^(No Data Found)|(NOT FOUND)\n/) | ||
@ast["status:available"] = true | ||
end | ||
end | ||
|
||
tokenizer :skip_lastupdate do | ||
@input.skip(/>>>(.+?)<<<\n/) | ||
end | ||
|
||
tokenizer :scan_disclaimer do | ||
if @input.match?(/^(Afilias Australia Pty Ltd)(.+)\n\n/) | ||
@ast["field:disclaimer"] = _scan_lines_to_array(/(.+)(\n+)/).join("\n") | ||
end | ||
end | ||
end | ||
|
||
end | ||
end |
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
spec/fixtures/responses/whois.auda.org.au/au/property_status_with_multiple.expected
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#status | ||
%s == ["serverRenewProhibited https://afilias.com.au/get-au/whois-status-codes#serverRenewProhibited"] | ||
44 changes: 44 additions & 0 deletions
44
spec/fixtures/responses/whois.auda.org.au/au/property_status_with_multiple.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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Domain Name: PINEWOOD.COM.AU | ||
Registry Domain ID: D407400000001847702-AU | ||
Registrar WHOIS Server: whois.synergywholesale.com | ||
Registrar URL: whois.synergywholesale.com | ||
Last Modified: | ||
Registrar Name: Synergy Wholesale Pty Ltd | ||
Registrar Abuse Contact Email: [email protected] | ||
Registrar Abuse Contact Phone: +61.383999483 | ||
Reseller Name: | ||
Status: serverRenewProhibited https://afilias.com.au/get-au/whois-status-codes#serverRenewProhibited | ||
Registrant Contact ID: NFVKTQY4FP7TA0W | ||
Registrant Contact Name: EMIL ANDONOV | ||
Tech Contact ID: NFSTGFPPDC0HFZ1Q | ||
Tech Contact Name: EMIL ANDONOV | ||
Name Server: DNS1.NETFLEET.COM.AU | ||
Name Server IP: 202.191.63.6 | ||
Name Server: DNS2.NETFLEET.COM.AU | ||
Name Server IP: 180.235.131.172 | ||
DNSSEC: unsigned | ||
Registrant: Pacific Fund Pty Ltd | ||
Registrant ID: ABN 75143185406 | ||
Eligibility Type: Company | ||
|
||
>>> Last update of WHOIS database: 2018-08-07T21:25:00Z <<< | ||
|
||
|
||
|
||
Afilias Australia Pty Ltd (Afilias), for itself and on behalf of .au Domain Administration Limited (auDA), makes the WHOIS registration data directory service (WHOIS Service) available solely for the purposes of: | ||
|
||
(a) querying the availability of a domain name licence; | ||
|
||
(b) identifying the holder of a domain name licence; and/or | ||
|
||
(c) contacting the holder of a domain name licence in relation to that domain name and its use. | ||
|
||
The WHOIS Service must not be used for any other purpose (even if that purpose is lawful), including: | ||
|
||
(a) aggregating, collecting or compiling information from the WHOIS database, whether for personal or commercial purposes; | ||
|
||
(b) enabling the sending of unsolicited electronic communications; and / or | ||
|
||
(c) enabling high volume, automated, electronic processes that send queries or data to the systems of Afilias, any registrar, any domain name licence holder, or auDA. | ||
|
||
The WHOIS Service is provided for information purposes only. By using the WHOIS Service, you agree to be bound by these terms and conditions. The WHOIS Service is operated in accordance with the auDA WHOIS Policy (available at https://www.auda.org.au/policies/index-of-published-policies/2014/2014-07/ ). |
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
spec/fixtures/responses/whois.auda.org.au/au/status_available.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
NOT FOUND | ||
>>> Last update of WHOIS database: 2018-08-07T19:35:44Z <<< | ||
|
||
Afilias Australia Pty Ltd (Afilias), for itself and on behalf of .au Domain Administration Limited (auDA), makes the WHOIS registration data directory service (WHOIS Service) available solely for the purposes of: | ||
|
||
(a) querying the availability of a domain name licence; | ||
|
||
(b) identifying the holder of a domain name licence; and/or | ||
|
||
(c) contacting the holder of a domain name licence in relation to that domain name and its use. | ||
|
||
The WHOIS Service must not be used for any other purpose (even if that purpose is lawful), including: | ||
|
||
(a) aggregating, collecting or compiling information from the WHOIS database, whether for personal or commercial purposes; | ||
|
||
(b) enabling the sending of unsolicited electronic communications; and / or | ||
|
||
(c) enabling high volume, automated, electronic processes that send queries or data to the systems of Afilias, any registrar, any domain name licence holder, or auDA. | ||
|
||
The WHOIS Service is provided for information purposes only. By using the WHOIS Service, you agree to be bound by these terms and conditions. The WHOIS Service is operated in accordance with the auDA WHOIS Policy (available at https://www.auda.org.au/policies/index-of-published-policies/2014/2014-07/ ). |
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
49 changes: 49 additions & 0 deletions
49
spec/fixtures/responses/whois.auda.org.au/au/status_registered.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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Domain Name: GOOGLE.COM.AU | ||
Registry Domain ID: D407400000001774763-AU | ||
Registrar WHOIS Server: | ||
Registrar URL: | ||
Last Modified: | ||
Registrar Name: MarkMonitor Corporate Services Inc | ||
Registrar Abuse Contact Email: | ||
Registrar Abuse Contact Phone: | ||
Reseller Name: | ||
Status: clientDeleteProhibited https://afilias.com.au/get-au/whois-status-codes#clientDeleteProhibited | ||
Status: clientUpdateProhibited https://afilias.com.au/get-au/whois-status-codes#clientUpdateProhibited | ||
Status: serverDeleteProhibited https://afilias.com.au/get-au/whois-status-codes#serverDeleteProhibited | ||
Status: serverRenewProhibited https://afilias.com.au/get-au/whois-status-codes#serverRenewProhibited | ||
Status: serverUpdateProhibited https://afilias.com.au/get-au/whois-status-codes#serverUpdateProhibited | ||
Registrant Contact ID: MMR-122026 | ||
Registrant Contact Name: Domain Administrator | ||
Tech Contact ID: MMR-87489 | ||
Tech Contact Name: DNS Admin | ||
Name Server: NS1.GOOGLE.COM | ||
Name Server: NS2.GOOGLE.COM | ||
Name Server: NS3.GOOGLE.COM | ||
Name Server: NS4.GOOGLE.COM | ||
DNSSEC: unsigned | ||
Registrant: Google INC | ||
Eligibility Type: Trademark Owner | ||
Eligibility Name: GOOGLE | ||
Eligibility ID: TM 788234 | ||
|
||
>>> Last update of WHOIS database: 2018-08-07T19:34:09Z <<< | ||
|
||
|
||
|
||
Afilias Australia Pty Ltd (Afilias), for itself and on behalf of .au Domain Administration Limited (auDA), makes the WHOIS registration data directory service (WHOIS Service) available solely for the purposes of: | ||
|
||
(a) querying the availability of a domain name licence; | ||
|
||
(b) identifying the holder of a domain name licence; and/or | ||
|
||
(c) contacting the holder of a domain name licence in relation to that domain name and its use. | ||
|
||
The WHOIS Service must not be used for any other purpose (even if that purpose is lawful), including: | ||
|
||
(a) aggregating, collecting or compiling information from the WHOIS database, whether for personal or commercial purposes; | ||
|
||
(b) enabling the sending of unsolicited electronic communications; and / or | ||
|
||
(c) enabling high volume, automated, electronic processes that send queries or data to the systems of Afilias, any registrar, any domain name licence holder, or auDA. | ||
|
||
The WHOIS Service is provided for information purposes only. By using the WHOIS Service, you agree to be bound by these terms and conditions. The WHOIS Service is operated in accordance with the auDA WHOIS Policy (available at https://www.auda.org.au/policies/index-of-published-policies/2014/2014-07/ ). |
2 changes: 0 additions & 2 deletions
2
spec/fixtures/responses/whois.audns.net.au/au/property_status_with_multiple.expected
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
spec/fixtures/responses/whois.audns.net.au/au/property_status_with_multiple.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
spec/fixtures/responses/whois.audns.net.au/au/status_available.txt
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
spec/fixtures/responses/whois.audns.net.au/au/status_registered.txt
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose that spec is outdated. Or it requires another domain.