-
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated whois.arnesi.si to the new response format
- Loading branch information
Showing
9 changed files
with
143 additions
and
42 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
8 changes: 8 additions & 0 deletions
8
spec/fixtures/responses/whois.arnes.si/property_status_ok.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,8 @@ | ||
#status | ||
%s == :registered | ||
|
||
#available? | ||
%s == false | ||
|
||
#registered? | ||
%s == true |
51 changes: 51 additions & 0 deletions
51
spec/fixtures/responses/whois.arnes.si/property_status_ok.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,51 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% This is ARNES whois database | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Rights restricted by copyright. | ||
% See http://www.arnes.si/domene/whois-legal.html | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% The WHOIS service offered by Arnes, .si Registry, is | ||
% provided for information purposes only. It allows persons | ||
% to check whether a specific domain name is still available | ||
% or not and to obtain information related to the registration | ||
% records of existing domain names. | ||
% | ||
% This WHOIS service accepts and displays only ASCII characters. | ||
% | ||
% Arnes cannot be held liable should the stored information | ||
% prove to be wrong, incomplete or inaccurate in any sense. | ||
% | ||
% By submitting a query you agree not to use the information | ||
% made available to: | ||
% o Allow, enable or otherwise support the transmission | ||
% of unsolicited, commercial advertising or other solicitations | ||
% whether via email or otherwise; | ||
% o Target advertising in any possible way; | ||
% o Cause nuisance in any possible way to the registrants | ||
% by sending (whether by automated, electronic processes | ||
% capable of enabling high volumes or other possible | ||
% means) messages to them; | ||
% o copy, extract and/or publish contents of the WHOIS database. | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
||
domain: paypal-topup.si | ||
registrar: AOI d.o.o. | ||
registrar-url: http://www.aoi.eu/arneswhois | ||
nameserver: ns3.isc-sns.info | ||
nameserver: ns1.isc-sns.net | ||
nameserver: ns2.isc-sns.com | ||
status: ok | ||
created: 2012-07-19 | ||
expire: 2014-07-19 | ||
source: ARNES | ||
|
||
Domain holder: | ||
NOT DISCLOSED | ||
|
||
Tech: | ||
NOT DISCLOSED | ||
|
||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% For more information, please visit http://www.registry.si/whois.html | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
|
||
#expires_on | ||
%s %CLASS{time} | ||
%s %TIME{2010-07-19} | ||
%s %TIME{2014-07-19} | ||
|
||
|
||
#nameservers | ||
|
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
39 changes: 39 additions & 0 deletions
39
spec/whois/record/parser/responses/whois.arnes.si/property_status_ok_spec.rb
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,39 @@ | ||
# encoding: utf-8 | ||
|
||
# This file is autogenerated. Do not edit it manually. | ||
# If you want change the content of this file, edit | ||
# | ||
# /spec/fixtures/responses/whois.arnes.si/property_status_ok.expected | ||
# | ||
# and regenerate the tests with the following rake task | ||
# | ||
# $ rake spec:generate | ||
# | ||
|
||
require 'spec_helper' | ||
require 'whois/record/parser/whois.arnes.si.rb' | ||
|
||
describe Whois::Record::Parser::WhoisArnesSi, "property_status_ok.expected" do | ||
|
||
subject do | ||
file = fixture("responses", "whois.arnes.si/property_status_ok.txt") | ||
part = Whois::Record::Part.new(body: File.read(file)) | ||
described_class.new(part) | ||
end | ||
|
||
describe "#status" do | ||
it do | ||
expect(subject.status).to eq(:registered) | ||
end | ||
end | ||
describe "#available?" do | ||
it do | ||
expect(subject.available?).to eq(false) | ||
end | ||
end | ||
describe "#registered?" do | ||
it do | ||
expect(subject.registered?).to eq(true) | ||
end | ||
end | ||
end |
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