Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update specs for whois.tznic.or.tz

  • Loading branch information...
commit 2b3f0c7efae0b253e93bb12201f6b6d7fe922076 1 parent e1079b6
Simone Carletti authored
36 spec/fixtures/responses/whois.tznic.or.tz/status_available.txt
View
@@ -1,34 +1,10 @@
-% NOTICE: The expiration date displayed in this record is the date the
-% registrar's sponsorship of the domain name registration in the registry is
-% currently set to expire. This date does not necessarily reflect the expiration
-% date of the domain name registrant's agreement with the sponsoring
-% registrar. Users may consult the sponsoring registrar's Whois database to
-% view the registrar's reported date of expiration for this registration.
-%
-% TERMS OF USE: You are not authorized to access or query our Whois
-% database through the use of electronic processes that are high-volume and
-% automated except as reasonably necessary to register domain names or
-% modify existing registrations; the Data in TZNIC Global Registry
-% Services' ("TZNIC") Whois database is provided by TZNIC for
-% information purposes only, and to assist persons in obtaining information
-% about or related to a domain name registration record. TZNIC does not
-% guarantee its accuracy. By submitting a Whois query, you agree to abide
-% by the following terms of use: You agree that you may use this Data only
-% for lawful purposes and that under no circumstances will you use this Data
-% to: (1) allow, enable, or otherwise support the transmission of mass
-% unsolicited, commercial advertising or solicitations via e-mail, telephone,
-% or facsimile; or (2) enable high volume, automated, electronic processes
-% that apply to TZNIC (or its computer systems). The compilation,
-% repackaging, dissemination or other use of this Data is expressly
-% prohibited without the prior written consent of TZNIC. You agree not to
-% use electronic processes that are automated and high-volume to access or
-% query the Whois database except as reasonably necessary to register
-% domain names or modify existing registrations. TZNIC reserves the right
-% to restrict your access to the Whois database in its sole discretion to ensure
-% operational stability. TZNIC may restrict or terminate your access to the
-% Whois database for failure to abide by these terms of use. TZNIC
-% reserves the right to modify these terms at any time.
+%
+% TZNIC WHOIS data and services are subject to the Terms of Use
+% available at: http://www.tznic.or.tz/docs/whois_tou.pdf
%
+% You may also use our WHOIS Web service available at:
+% http://whois.tznic.or.tz/whois
+%
%
% Whoisd Server Version: 3.1.1
6 spec/fixtures/responses/whois.tznic.or.tz/status_registered.expected
View
@@ -18,13 +18,13 @@
#expires_on
should: %s CLASS(time)
- should: %s == Time.parse("2011-07-27")
+ should: %s == Time.parse("2012-07-27")
#nameservers
should: %s CLASS(array)
should: %s SIZE(2)
should: %s[0] CLASS(nameserver)
- should: %s[0].name == "ns1213.hostgator.com"
+ should: %s[0].name == "ns1.twigaservers.com"
should: %s[1] CLASS(nameserver)
- should: %s[1].name == "ns1214.hostgator.com"
+ should: %s[1].name == "ns2.twigaservers.com"
46 spec/fixtures/responses/whois.tznic.or.tz/status_registered.txt
View
@@ -1,37 +1,13 @@
-% NOTICE: The expiration date displayed in this record is the date the
-% registrar's sponsorship of the domain name registration in the registry is
-% currently set to expire. This date does not necessarily reflect the expiration
-% date of the domain name registrant's agreement with the sponsoring
-% registrar. Users may consult the sponsoring registrar's Whois database to
-% view the registrar's reported date of expiration for this registration.
-%
-% TERMS OF USE: You are not authorized to access or query our Whois
-% database through the use of electronic processes that are high-volume and
-% automated except as reasonably necessary to register domain names or
-% modify existing registrations; the Data in TZNIC Global Registry
-% Services' ("TZNIC") Whois database is provided by TZNIC for
-% information purposes only, and to assist persons in obtaining information
-% about or related to a domain name registration record. TZNIC does not
-% guarantee its accuracy. By submitting a Whois query, you agree to abide
-% by the following terms of use: You agree that you may use this Data only
-% for lawful purposes and that under no circumstances will you use this Data
-% to: (1) allow, enable, or otherwise support the transmission of mass
-% unsolicited, commercial advertising or solicitations via e-mail, telephone,
-% or facsimile; or (2) enable high volume, automated, electronic processes
-% that apply to TZNIC (or its computer systems). The compilation,
-% repackaging, dissemination or other use of this Data is expressly
-% prohibited without the prior written consent of TZNIC. You agree not to
-% use electronic processes that are automated and high-volume to access or
-% query the Whois database except as reasonably necessary to register
-% domain names or modify existing registrations. TZNIC reserves the right
-% to restrict your access to the Whois database in its sole discretion to ensure
-% operational stability. TZNIC may restrict or terminate your access to the
-% Whois database for failure to abide by these terms of use. TZNIC
-% reserves the right to modify these terms at any time.
+%
+% TZNIC WHOIS data and services are subject to the Terms of Use
+% available at: http://www.tznic.or.tz/docs/whois_tou.pdf
%
+% You may also use our WHOIS Web service available at:
+% http://whois.tznic.or.tz/whois
+%
%
% Whoisd Server Version: 3.1.1
-% Timestamp: Mon Oct 25 00:44:10 2010
+% Timestamp: Tue Jul 03 15:55:21 2012
domain: dailynews.co.tz
registrant: CM7-TZNIC
@@ -41,7 +17,7 @@ registrar: REG-TZNIC
status: paid and in zone
registered: 27.07.2009 11:01:10
changed: 30.08.2010 15:47:56
-expire: 27.07.2011
+expire: 27.07.2012
contact: CM7-TZNIC
org: TSN
@@ -55,12 +31,12 @@ registrar: REG-PT
created: 30.08.2010 15:46:35
nsset: NS-DAILYNEWS.CO.TZ
-nserver: ns1213.hostgator.com
-nserver: ns1214.hostgator.com
+nserver: ns1.twigaservers.com
+nserver: ns2.twigaservers.com
tech-c: JN1-TZNIC
registrar: REG-TZNIC
created: 27.07.2009 09:12:12
-changed: 30.08.2010 15:49:35
+changed: 02.02.2012 11:47:58
contact: JN1-TZNIC
org: Twiga Hosting
6 spec/whois/record/parser/responses/whois.tznic.or.tz/status_registered_spec.rb
View
@@ -51,7 +51,7 @@
describe "#expires_on" do
it do
@parser.expires_on.should be_a(Time)
- @parser.expires_on.should == Time.parse("2011-07-27")
+ @parser.expires_on.should == Time.parse("2012-07-27")
end
end
describe "#nameservers" do
@@ -59,9 +59,9 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(2).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].name.should == "ns1213.hostgator.com"
+ @parser.nameservers[0].name.should == "ns1.twigaservers.com"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].name.should == "ns1214.hostgator.com"
+ @parser.nameservers[1].name.should == "ns2.twigaservers.com"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.