Skip to content
Browse files

whois.cira.ca must support :redemption status as :registered.

  • Loading branch information...
1 parent 70cde14 commit b6a40854c4b4c7ce294374bb46d3bbafeef61c24 @weppos committed
View
2 CHANGELOG.rdoc
@@ -6,6 +6,8 @@
* FIXED: whois.dns.pt must support :reserved status.
+* FIXED: whois.cira.ca must support :redemption status as :registered.
+
== Release 1.6.4
View
1 lib/whois/answer/parser/whois.cira.ca.rb
@@ -39,6 +39,7 @@ class WhoisCiraCa < Base
case $1.downcase
# schema-2
when "registered" then :registered
+ when "redemption" then :registered
when "available" then :available
# schema-1
when "exist" then :registered
View
40 test/fixtures/responses/whois.cira.ca/schema-2/property_status_redemption.txt
@@ -0,0 +1,40 @@
+Domain name: glu.ca
+Domain status: redemption
+Creation date: 2004/10/30
+Expiry date: 2010/10/29
+Updated date: 2010/12/04
+
+Registrar:
+ Name: Webnames.ca Inc.
+ Number: 70
+
+Registrant:
+ Name: Sanamato Inc.
+
+Administrative contact:
+ Name: Ross Vito
+ Postal address: 405 Queen Street South, P.O. Box 75004
+ Bolton ON L7E2B5 Canada
+ Phone: 1 (647) 964-4544
+ Fax:
+ Email: mail@sanamato.com
+
+Technical contact:
+ Name: Ross Vito
+ Postal address: 405 Queen Street South, P.O. Box 75004
+ Bolton ON L7E2B5 Canada
+ Phone: 1 (647) 964-4544
+ Fax:
+ Email: mail@sanamato.com
+
+Name servers:
+ ns1.webnames.ca 65.39.140.92
+ ns2.webnames.ca 64.85.60.137
+ ns3.webnames.ca 64.34.130.218
+
+% WHOIS look-up made at 2010-12-07 21:24:18 (GMT)
+%
+% Use of CIRA's WHOIS service is governed by the Terms of Use in its Legal
+% Notice, available at http://www.cira.ca/legal-notice/?lang=en
+%
+% (c) 2010 Canadian Internet Registration Authority, (http://www.cira.ca/)
View
15 test/whois/answer/parser/whois.cira.ca_test.rb
@@ -26,6 +26,11 @@ def test_status
expected = :available
assert_equal expected, parser.status
assert_equal expected, parser.instance_eval { @status }
+
+ parser = @klass.new(load_part('/schema-2/property_status_redemption.txt'))
+ expected = :registered
+ assert_equal expected, parser.status
+ assert_equal expected, parser.instance_eval { @status }
end
def test_available?
@@ -38,6 +43,11 @@ def test_available?
expected = true
assert_equal expected, parser.available?
assert_equal expected, parser.instance_eval { @available }
+
+ parser = @klass.new(load_part('/schema-2/property_status_redemption.txt'))
+ expected = false
+ assert_equal expected, parser.available?
+ assert_equal expected, parser.instance_eval { @available }
end
def test_registered?
@@ -50,6 +60,11 @@ def test_registered?
expected = false
assert_equal expected, parser.registered?
assert_equal expected, parser.instance_eval { @registered }
+
+ parser = @klass.new(load_part('/schema-2/property_status_redemption.txt'))
+ expected = true
+ assert_equal expected, parser.registered?
+ assert_equal expected, parser.instance_eval { @registered }
end

0 comments on commit b6a4085

Please sign in to comment.
Something went wrong with that request. Please try again.