Subject: | t/403.t fails due to change in behaviour of remote server |
t/403.t fails in 1.15 because the test URL no longer returns a 403 code:
$ curl --HEAD 'http://groups.google.com/groups?as_uauthors=comdog@panix.com'
HTTP/1.1 502 Bad Gateway
Content-Type: text/html; charset=UTF-8
Content-Length: 1409
Date: Tue, 18 May 2010 14:12:12 GMT
Server: GFE/2.0
I got it to pass for my own build by creating a suitable URL on my own
server and substituting that into the test (see attached patch).
Subject: | HTTP-SimpleLinkChecker-1.15-403URL.patch |
--- HTTP-SimpleLinkChecker-1.15/t/403.t 2007-02-09 01:31:09.000000000 +0000
+++ HTTP-SimpleLinkChecker-1.15/t/403.t 2010-05-13 16:36:49.605127255 +0100
@@ -6,7 +6,7 @@
# this won't work for robots
my $code = &HTTP::SimpleLinkChecker::check_link(
- 'http://groups.google.com/groups?as_uauthors=comdog@panix.com');
+ 'http://www.city-fan.org/HTTP-SimpleLinkChecker/403.html');
is( $code, 403, "Unauthorized code works" );
@@ -15,7 +15,7 @@
$ua->agent( "Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)" );
$code = &HTTP::SimpleLinkChecker::check_link(
- 'http://groups.google.com/groups?as_uauthors=comdog@panix.com');
+ 'http://www.city-fan.org/HTTP-SimpleLinkChecker/403.html');
is( $code, 200, "OK code works" );