Subject: | make test fails if $ENV{HTTP_PROXY} is set |
Overview
When running the test suite against PoCoClHTTP v0.72, some tests fail in case the $ENV{HTTP_PROXY} is set (on GNU/Linux, but I guess it is true for other OSs too).
Expected Behavior:
The test suite should pass
Actual Behavior:
The test suite fails.
(see the end of the report for the actual messages)
Installed Modules:
POE 0.3202
Carp 1.03
POSIX 1.08
Symbol 1.05
HTTP::Response 1.53
HTTP::Status 1.28
URI 1.35
__TEST_REPORT_BELOW__
vorphalack:~/.cpanplus/5.8.6/build/POE-Component-Client-HTTP-0.72/t # prove -v -I../lib *
01_request.............1..14
Use of uninitialized value in pattern match (m//) at ../lib/POE/Component/Client/HTTP/RequestFactory.pm line 319.
Use of uninitialized value in pattern match (m//) at ../lib/POE/Component/Client/HTTP/RequestFactory.pm line 319.
ok 1 - have enough requests pending
ok 2 - request 1
ok 3 - 400 for malformed request 10
# Failed test (01_request.t at line 167)
not ok 4 - 400 for malformed request 10
ok 5 - request 2
ok 6 - request 3
ok 7 - request 5
ok 8 - got OK response for request 7
ok 9 - content of correct length for request 7
ok 10 - Got OK response for request 9
ok 11 - response for redirected uri
ok 12 - original request uri matches previous response
ok 13 - request 8
# Looks like you planned 14 tests but only ran 13.
dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 4, 14
Failed 2/14 tests, 85.71% okay
02_keepalive...........1..8
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok
03_head_filter.........1..8
ok 1 - loaded
ok 2 - Ok sans headers isa HTTP::Response
ok 3 - Got our object isa HTTP::Response
ok 4 - Parsed HTTP/0.9 content-only request
ok 5 - Not picking up bad request headers
ok 6 - No HTTP version isa HTTP::Response
ok 7 - Got content foo
ok 8 - got EOF
ok
04_chunk_filter........1..9
ok 1 - loaded
ok 2 - correct chunk
ok 3 - correct chunk
ok 4 - Got trailer 'header'
ok 5 - correct chunk
ok 6 - correct chunk
ok 7 - no trailer 'headers'
ok 8 - Got EOF
ok 9 - chunk length with trailing whitespace
ok
05_request.............1..7
ok 1 - loaded
ok 2 - parameter style
ok 3 - Request parameter
ok 4 - Request parameter
ok 5 - Factory parameter
ok 6 - Appropriate Request
ok 7 - The object isa POE::Component::Client::HTTP::Request
ok
06_factory.............1..13
ok 1 - loaded
ok 2 - Argument format
ok 3 - Argument format
ok 4 - Agent parameter
ok 5 - The object isa POE::Component::Client::HTTP::RequestFactory
ok 6 - Agent string
ok 7 - custom Agent string
ok 8 - Proxy parameter as list
ok 9 - Proxy parameter as string
ok 10 - correct Proxy string
ok 11 - correct Proxy list
ok 12 - Protocol string
ok 13 - empty Protocol string
ok
07_proxy...............1..9
ok 1
ok 2
ok 3
not ok 4
# Failed test (07_proxy.t at line 88)
ok 5
ok 6
ok 7
not ok 8
# Failed test (07_proxy.t at line 154)
ok 9
# Looks like you failed 2 tests of 9.
dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 4, 8
Failed 2/9 tests, 77.78% okay
08_discard.............1..1
not ok 1 - received error 408
# Failed test (08_discard.t at line 55)
# Looks like you failed 1 tests of 1.
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
50_davis_zerolength....1..2
ok 1 - received zero-length response
ok 2 - received nonzero-length response
ok
51_santos_status.......1..4
ok 1 - loaded
ok 2 - header received
ok 3 - content received
ok 4 - got EOF
ok
52_reiss_bad_length....1..4
ok 1 - got a response, content = (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">{LF}<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">{LF}<TITLE>ERROR: The requested URL could not be retrieved</TITLE>{LF}<STYLE type="text/css"><!--BODY{background-color:\#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>{LF}</HEAD><BODY>{LF}<H1>ERROR</H1>{LF}<H2>The requested URL could not be retrieved</H2>{LF}<HR noshade size="1px">{LF}<P>{LF}While trying to retrieve the URL:{LF}<A HREF="http://127.0.0.1:1170/">http://127.0.0.1:1170/</A>{LF}<P>{LF}The following error was encountered:{LF}<UL>{LF}<LI>{LF}<STRONG>{LF}Access Denied.{LF}</STRONG>{LF}<P>{LF}Access control configuration prevents your request from{LF}being allowed at this time. Please contact your service provider if{LF}you feel this is incorrect.{LF}</UL>{LF}<P>Your cache administrator is <A HREF="mailto:root">root</A>. {LF}{LF}{LF}<BR clear="all">{LF}<HR noshade size="1px">{LF}<ADDRESS>{LF}Generated Thu, 22 Dec 2005 07:57:07 GMT by passage.avira.local (squid/2.5.STABLE11){LF}</ADDRESS>{LF}</BODY></HTML>{LF})
ok 2 - got a response, content = (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">{LF}<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">{LF}<TITLE>ERROR: The requested URL could not be retrieved</TITLE>{LF}<STYLE type="text/css"><!--BODY{background-color:\#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>{LF}</HEAD><BODY>{LF}<H1>ERROR</H1>{LF}<H2>The requested URL could not be retrieved</H2>{LF}<HR noshade size="1px">{LF}<P>{LF}While trying to retrieve the URL:{LF}<A HREF="http://127.0.0.1:1169/">http://127.0.0.1:1169/</A>{LF}<P>{LF}The following error was encountered:{LF}<UL>{LF}<LI>{LF}<STRONG>{LF}Access Denied.{LF}</STRONG>{LF}<P>{LF}Access control configuration prevents your request from{LF}being allowed at this time. Please contact your service provider if{LF}you feel this is incorrect.{LF}</UL>{LF}<P>Your cache administrator is <A HREF="mailto:root">root</A>. {LF}{LF}{LF}<BR clear="all">{LF}<HR noshade size="1px">{LF}<ADDRESS>{LF}Generated Thu, 22 Dec 2005 07:57:07 GMT by passage.avira.local (squid/2.5.STABLE11){LF}</ADDRESS>{LF}</BODY></HTML>{LF})
ok 3 - got a response, content = (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">{LF}<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">{LF}<TITLE>ERROR: The requested URL could not be retrieved</TITLE>{LF}<STYLE type="text/css"><!--BODY{background-color:\#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>{LF}</HEAD><BODY>{LF}<H1>ERROR</H1>{LF}<H2>The requested URL could not be retrieved</H2>{LF}<HR noshade size="1px">{LF}<P>{LF}While trying to retrieve the URL:{LF}<A HREF="http://127.0.0.1:1172/">http://127.0.0.1:1172/</A>{LF}<P>{LF}The following error was encountered:{LF}<UL>{LF}<LI>{LF}<STRONG>{LF}Access Denied.{LF}</STRONG>{LF}<P>{LF}Access control configuration prevents your request from{LF}being allowed at this time. Please contact your service provider if{LF}you feel this is incorrect.{LF}</UL>{LF}<P>Your cache administrator is <A HREF="mailto:root">root</A>. {LF}{LF}{LF}<BR clear="all">{LF}<HR noshade size="1px">{LF}<ADDRESS>{LF}Generated Thu, 22 Dec 2005 07:57:07 GMT by passage.avira.local (squid/2.5.STABLE11){LF}</ADDRESS>{LF}</BODY></HTML>{LF})
ok 4 - got a response, content = (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">{LF}<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">{LF}<TITLE>ERROR: The requested URL could not be retrieved</TITLE>{LF}<STYLE type="text/css"><!--BODY{background-color:\#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>{LF}</HEAD><BODY>{LF}<H1>ERROR</H1>{LF}<H2>The requested URL could not be retrieved</H2>{LF}<HR noshade size="1px">{LF}<P>{LF}While trying to retrieve the URL:{LF}<A HREF="http://127.0.0.1:1171/">http://127.0.0.1:1171/</A>{LF}<P>{LF}The following error was encountered:{LF}<UL>{LF}<LI>{LF}<STRONG>{LF}Access Denied.{LF}</STRONG>{LF}<P>{LF}Access control configuration prevents your request from{LF}being allowed at this time. Please contact your service provider if{LF}you feel this is incorrect.{LF}</UL>{LF}<P>Your cache administrator is <A HREF="mailto:root">root</A>. {LF}{LF}{LF}<BR clear="all">{LF}<HR noshade size="1px">{LF}<ADDRESS>{LF}Generated Thu, 22 Dec 2005 07:57:07 GMT by passage.avira.local (squid/2.5.STABLE11){LF}</ADDRESS>{LF}</BODY></HTML>{LF})
Scalars leaked: 2
ok
53_response_parser.....1..4
not ok 1 - unknown transfer encodings preserved
# Failed test (53_response_parser.t at line 46)
not ok 2 - HTTP 0.9 supports no status and no headers, no LF
# Failed test (53_response_parser.t at line 62)
not ok 3 - HTTP 0.9 supports no status and no headers, multiple lines
# Failed test (53_response_parser.t at line 80)
not ok 4 - no known transfer encodings
# Failed test (53_response_parser.t at line 104)
# Looks like you failed 4 tests of 4.
Scalars leaked: 2
dubious
Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 1-4
Failed 4/4 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
01_request.t 2 512 14 3 21.43% 4 14
07_proxy.t 2 512 9 2 22.22% 4 8
08_discard.t 1 256 1 1 100.00% 1
53_response_parser.t 4 1024 4 4 100.00% 1-4
Failed 4/12 test scripts, 66.67% okay. 9/83 subtests failed, 89.16% okay.