Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
whois.dns.be crashes when the status is
not allowd
- Loading branch information
Showing
12 changed files
with
296 additions
and
6 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.dns.be/property_status_notallowed.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 == :invalid | ||
|
||
#available? | ||
%s == false | ||
|
||
#registered? | ||
%s == false |
40 changes: 40 additions & 0 deletions
40
spec/fixtures/responses/whois.dns.be/property_status_notallowed.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,40 @@ | ||
% .be Whois Server 6.1 | ||
% | ||
% The WHOIS service offered by DNS.be and the access to the records in the DNS.be | ||
% WHOIS database are 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. | ||
% | ||
% DNS.be cannot, under any circumstances, be held liable where the stored | ||
% information would prove to be incomplete or inaccurate in any sense. | ||
% | ||
% By submitting a query you agree not to use the information made available | ||
% to: | ||
% - allow, enable or otherwise support the transmission of unsolicited, | ||
% commercial advertising or other solicitations whether via email or otherwise; | ||
% - target advertising in any possible way; | ||
% - to cause nuisance in any possible way to the domain name holders by sending | ||
% messages to them (whether by automated, electronic processes capable of | ||
% enabling high volumes or other possible means). | ||
% | ||
% Without prejudice to the above, it is explicitly forbidden to extract, copy | ||
% and/or use or re-utilise in any form and by any means (electronically or | ||
% not) the whole or a quantitatively or qualitatively substantial part | ||
% of the contents of the WHOIS database without prior and explicit permission | ||
% by DNS.be, nor in any attempt thereof, to apply automated, electronic | ||
% processes to DNS.be (or its systems). | ||
% | ||
% You agree that any reproduction and/or transmission of data for commercial | ||
% purposes will always be considered as the extraction of a substantial | ||
% part of the content of the WHOIS database. | ||
% | ||
% By submitting the query you agree to abide by this policy and accept that | ||
% DNS.be can take measures to limit the use of its whois services in order to | ||
% protect the privacy of its registrants or the integrity of the database. | ||
% | ||
|
||
Domain: www.kimdemolenaer.be | ||
Status: NOT ALLOWED | ||
Message: Use only approved 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 |
---|---|---|
|
@@ -33,3 +33,7 @@ | |
|
||
#response_throttled? | ||
%s == false | ||
|
||
|
||
#invalid? | ||
%s == false |
39 changes: 39 additions & 0 deletions
39
spec/fixtures/responses/whois.dns.be/status_invalid.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,39 @@ | ||
#domain | ||
%s == "www.kimdemolenaer.be" | ||
|
||
|
||
#status | ||
%s == :invalid | ||
|
||
#available? | ||
%s == false | ||
|
||
#registered? | ||
%s == false | ||
|
||
|
||
#created_on | ||
%s == nil | ||
|
||
#updated_on | ||
%s %ERROR{AttributeNotSupported} | ||
|
||
#expires_on | ||
%s %ERROR{AttributeNotSupported} | ||
|
||
|
||
#registrar | ||
%s == nil | ||
|
||
|
||
#nameservers | ||
%s %CLASS{array} | ||
%s == [] | ||
|
||
|
||
#response_throttled? | ||
%s == false | ||
|
||
|
||
#invalid? | ||
%s == true |
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,40 @@ | ||
% .be Whois Server 6.1 | ||
% | ||
% The WHOIS service offered by DNS.be and the access to the records in the DNS.be | ||
% WHOIS database are 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. | ||
% | ||
% DNS.be cannot, under any circumstances, be held liable where the stored | ||
% information would prove to be incomplete or inaccurate in any sense. | ||
% | ||
% By submitting a query you agree not to use the information made available | ||
% to: | ||
% - allow, enable or otherwise support the transmission of unsolicited, | ||
% commercial advertising or other solicitations whether via email or otherwise; | ||
% - target advertising in any possible way; | ||
% - to cause nuisance in any possible way to the domain name holders by sending | ||
% messages to them (whether by automated, electronic processes capable of | ||
% enabling high volumes or other possible means). | ||
% | ||
% Without prejudice to the above, it is explicitly forbidden to extract, copy | ||
% and/or use or re-utilise in any form and by any means (electronically or | ||
% not) the whole or a quantitatively or qualitatively substantial part | ||
% of the contents of the WHOIS database without prior and explicit permission | ||
% by DNS.be, nor in any attempt thereof, to apply automated, electronic | ||
% processes to DNS.be (or its systems). | ||
% | ||
% You agree that any reproduction and/or transmission of data for commercial | ||
% purposes will always be considered as the extraction of a substantial | ||
% part of the content of the WHOIS database. | ||
% | ||
% By submitting the query you agree to abide by this policy and accept that | ||
% DNS.be can take measures to limit the use of its whois services in order to | ||
% protect the privacy of its registrants or the integrity of the database. | ||
% | ||
|
||
Domain: www.kimdemolenaer.be | ||
Status: NOT ALLOWED | ||
Message: Use only approved 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
39 changes: 39 additions & 0 deletions
39
spec/whois/record/parser/responses/whois.dns.be/property_status_notallowed_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.dns.be/property_status_notallowed.expected | ||
# | ||
# and regenerate the tests with the following rake task | ||
# | ||
# $ rake spec:generate | ||
# | ||
|
||
require 'spec_helper' | ||
require 'whois/record/parser/whois.dns.be.rb' | ||
|
||
describe Whois::Record::Parser::WhoisDnsBe, "property_status_notallowed.expected" do | ||
|
||
subject do | ||
file = fixture("responses", "whois.dns.be/property_status_notallowed.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(:invalid) | ||
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(false) | ||
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
80 changes: 80 additions & 0 deletions
80
spec/whois/record/parser/responses/whois.dns.be/status_invalid_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,80 @@ | ||
# 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.dns.be/status_invalid.expected | ||
# | ||
# and regenerate the tests with the following rake task | ||
# | ||
# $ rake spec:generate | ||
# | ||
|
||
require 'spec_helper' | ||
require 'whois/record/parser/whois.dns.be.rb' | ||
|
||
describe Whois::Record::Parser::WhoisDnsBe, "status_invalid.expected" do | ||
|
||
subject do | ||
file = fixture("responses", "whois.dns.be/status_invalid.txt") | ||
part = Whois::Record::Part.new(body: File.read(file)) | ||
described_class.new(part) | ||
end | ||
|
||
describe "#domain" do | ||
it do | ||
expect(subject.domain).to eq("www.kimdemolenaer.be") | ||
end | ||
end | ||
describe "#status" do | ||
it do | ||
expect(subject.status).to eq(:invalid) | ||
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(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 raise_error(Whois::AttributeNotSupported) | ||
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) | ||
end | ||
end | ||
describe "#nameservers" do | ||
it do | ||
expect(subject.nameservers).to be_a(Array) | ||
expect(subject.nameservers).to eq([]) | ||
end | ||
end | ||
describe "#response_throttled?" do | ||
it do | ||
expect(subject.response_throttled?).to eq(false) | ||
end | ||
end | ||
describe "#invalid?" do | ||
it do | ||
expect(subject.invalid?).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