Subject: | Test failing because expiration dates changed |
Date: | Fri, 18 Oct 2019 13:24:18 +0000 |
To: | "bug-Net-Domain-ExpireDate [...] rt.cpan.org" <bug-Net-Domain-ExpireDate [...] rt.cpan.org> |
From: | Warren Melnick <wmelnick [...] millenniumweb.com> |
The testing you are going is looking for what I assume are old expiration dates so the tests are failing:
# domdates tests
# The following tests requires internet connection and may fail if checked domains were renewed...
t/01.t .. 77/?
# Failed test at t/01.t line 133.
# '2029-09-29'
# doesn't match '(?-xism:20\d\d-09-05)'
t/01.t .. 82/?
# Failed test at t/01.t line 142.
# '2005-10-31;2020-10-31;2020-12-02'
# doesn't match '(?-xism:2005-10-31;201\d-10-31;)'
t/01.t .. 84/? # Looks like you failed 2 tests of 84.
t/01.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/84 subtests
Patch:
--- t/01.t-orig 2019-10-18 09:19:13.128590951 -0400
+++ t/01.t 2019-10-18 09:22:42.469240490 -0400
@@ -130,7 +130,7 @@
like expire_date( 'microsoft.com', '%Y-%m-%d' ), qr{20\d\d-05-0(2|3)};
like expire_date( 'usa.biz', '%Y-%m-%d '), qr{20\d\d-03-26};
-like expire_date( 'nic.md', '%Y-%m-%d' ), qr{20\d\d-09-05};
+like expire_date( 'nic.md', '%Y-%m-%d' ), qr{20\d\d-09-29};
like expire_date( 'nic.us', '%Y-%m-%d' ), qr{20\d\d-04-17};
is( ( domain_dates( 'nic.jp', '%Y-%m-%d' ) )[0], '2003-07-31' );
@@ -139,7 +139,7 @@
like join( ';', domain_dates( 'godaddy.com', '%Y-%m-%d') ), qr{1999-03-02;202\d-11-01;};
$Net::Domain::ExpireDate::USE_REGISTRAR_SERVERS = 2;
-like join( ';', domain_dates( 'reg.ru', '%Y-%m-%d' ) ), qr{2005-10-31;201\d-10-31;};
+like join( ';', domain_dates( 'reg.ru', '%Y-%m-%d' ) ), qr{2005-10-31;202\d-10-31;202\d-12-02};
like join( ';', domain_dates( 'ibm.com', '%Y-%m-%d' ) ), qr{1986-03-19;20\d\d-03-20;};
like join( ';', domain_dates( 'intel.com', '%Y-%m-%d' ) ), qr{1986-03-25;20\d\d-03-26;};
Regards,
--
Warren Melnick
Director of IT & Security
[id:9A354845-9ECE-43C0-A6E6-D669AD2055C8]
Millennium Communications
6900 Jericho Tpke., Suite 115W
Syosset, NY 11791
Tel: 516-682-8080 x258
Fax: 516-682-9090
Web: www.millenniumweb.com<http://www.millenniumweb.com/>
Email: wmelnick@millenniumweb.com<mailto:wmelnick@millenniumweb.com>
This electronic message transmission contains information from Millennium Communications, Inc. that may be confidential or privileged. The information is intended to be for the use of only the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited. If you have received this electronic transmission in error, please notify the sender by replying to this e-mail and immediately deleting this email and any attachments from your system along with any copies you may have made, electronic or otherwise. If you are still reading this little print, please reply to this email and let me know because I am curious as to who actually does read these things.