Skip to content

Commit

Permalink
offline tests (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
secynic committed Jul 20, 2016
1 parent 1be39b9 commit 0c1ba4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ipwhois/tests/jpnic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"133.1.2.5": {"nir": "jpnic", "response": "\n<HTML>\n<HEAD>\n<META http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">\n<TITLE>JPNIC Whois Gateway</TITLE>\n</HEAD>\n<BODY>\n<PRE>\n[ JPNIC database provides information regarding IP address and ASN. Its use ]\n[ is restricted to network administration purposes. For further information, ]\n[ use 'whois -h whois.nic.ad.jp help'. To only display English output, ]\n[ add '/e' at the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'. ]\n\nNetwork Information: \na. [Network Number] <A HREF=\"./whois_gw?key=133.1.0.0/16\">133.1.0.0/16</A>\nb. [Network Name] OSAKAU-NET\ng. [Organization] Osaka University\nm. [Administrative Contact] <A HREF=\"./whois_gw?key=MY22537JP\">MY22537JP</A>\nn. [Technical Contact] <A HREF=\"./whois_gw?key=MY22537JP\">MY22537JP</A>\np. [Nameserver] a.osaka-u.ac.jp\np. [Nameserver] b.osaka-u.ac.jp\np. [Nameserver] dns-x.sinet.ad.jp\n[Assigned Date] \n[Return Date] \n[Last Update] 2015/01/14 11:50:03(JST)\n \nLess Specific Info.\n----------\nNo match!!\n\nMore Specific Info.\n----------\nNo match!!\n\n</PRE>\n<HR>\n<A HREF=\"./whois_gw\">Back to Whois Gateway top menu</A>\n</BODY>\n</HTML>\n"}}
1 change: 1 addition & 0 deletions ipwhois/tests/krnic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"115.1.2.3": {"nir": "krnic", "response": "<script language=\"javascript\">function allowDomain() {\r\nwindow.open(\"/kor/popup/allowDomain.jsp\", \"allowDomain\", \"width=520, height=645, menubar=no, toolbar=no, location=no, resizable=no, status=no, scrollbars=yes\");\r\n}</script></head>\r\n<body style=\"font-size:12px; background-color:transparent;\" >\r\n<pre style=\"font-family:gulimche;\" >query : 115.1.2.3\n\n\n# KOREAN(UTF8)\n\n IPv4 \n, .\n\n[ ]\nIPv4 : 115.0.0.0 - 115.23.255.255 (/12+/13)\n : \n : KORNET\n : 90\n : 13606\n : 20080703\n<script type=\"text/javascript\">\nfunction rolling( target, target_icon ) {\n\tif( document.getElementById(target).style.display==\"none\") {\n\t\tdocument.getElementById(target).style.display = \"block\";\n\t\tdocument.getElementById(target_icon).src = \"/images/ipwhois/minus.gif\";\n\t} else {\n\t\tdocument.getElementById(target).style.display = \"none\";\n\t\tdocument.getElementById(target_icon).src = \"/images/ipwhois/plus.gif\";\n\t}\n}\n</script>\n<a href=\"javascript:rolling('kor_isp_contact', 'kor_isp_contact_icon');\"><img border=\"0\" src=\"/images/ipwhois/plus.gif\" id=\"kor_isp_contact_icon\" name=\"kor_isp_contact_icon\"> </a>\n<div id=\"kor_isp_contact\" name=\"kor_isp_contact\" style=\"display:none;background:#F1F8F9;\"> : IP \n : +82-2-500-6630\n : kornet_ip@kt.com\n</div>\n IPv4 , \n .\n--------------------------------------------------------------------------------\n\n\n[ ]\nIPv4 : 115.1.2.0 - 115.1.2.63 (/26)\n : () \n : CUSTOMER\n : \n : 486-800\n : 20150317\n\n<a href=\"javascript:rolling('kor_user_contact', 'kor_user_contact_icon');\"><img border=\"0\" src=\"/images/ipwhois/plus.gif\" id=\"kor_user_contact_icon\" name=\"kor_user_contact_icon\"> </a>\n<div id=\"kor_user_contact\" name=\"kor_user_contact\" style=\"display:none;background:#F1F8F9;\"> : IP \n : +82-2-500-6630\n : kornet_ip@kt.com\n</div>\n\n# ENGLISH\n\nKRNIC is not an ISP but a National Internet Registry similar to APNIC.\n\n[ Network Information ]\nIPv4 Address : 115.0.0.0 - 115.23.255.255 (/12+/13)\nOrganization Name : Korea Telecom\nService Name : KORNET\nAddress : Gyeonggi-do Bundang-gu, Seongnam-si Buljeong-ro 90\nZip Code : 13606\nRegistration Date : 20080703\n\n<a href=\"javascript:rolling('eng_isp_contact', 'eng_isp_contact_icon');\"><img border=\"0\" src=\"/images/ipwhois/plus.gif\" id=\"eng_isp_contact_icon\" name=\"eng_isp_contact_icon\"> See the Contact Info</a>\n<div id=\"eng_isp_contact\" name=\"eng_isp_contact\" style=\"display:none;background:#F1F8F9;\">Name : IP Manager\nPhone : +82-2-500-6630\nE-Mail : kornet_ip@kt.com\n</div>\n--------------------------------------------------------------------------------\n\nMore specific assignment information is as follows.\n\n[ Network Information ]\nIPv4 Address : 115.1.2.0 - 115.1.2.63 (/26)\nOrganization Name : KT\nNetwork Type : CUSTOMER\nAddress : Yeoncheon-Eup Yeoncheon-Gun Gyeonggi-Do\nZip Code : 486-800\nRegistration Date : 20150317\n\n<a href=\"javascript:rolling('eng_user_contact', 'eng_user_contact_icon');\"><img border=\"0\" src=\"/images/ipwhois/plus.gif\" id=\"eng_user_contact_icon\" name=\"eng_user_contact_icon\"> See the Contact Info</a>\n<div id=\"eng_user_contact\" name=\"eng_user_contact\" style=\"display:none;background:#F1F8F9;\">Name : IP Manager\nPhone : +82-2-500-6630\nE-Mail : kornet_ip@kt.com\n</div>\n\n- KISA/KRNIC WHOIS Service -\n\n\n\n</pre>\r\n<script language=\"JavaScript\">\r\ndocument.oncontextmenu= new Function('return false');\r\ndocument.onselectstart= new Function('return false');\r\ndocument.ondragstart= new Function('return false');\r\n</script>\r\n</body></html>\r\n<script language=\"JavaScript\">\r\nparent.setHeight(1460);\r\n</script>\r\n"}}

0 comments on commit 0c1ba4f

Please sign in to comment.