libwww-perl / LWP-Protocol-https

Provide https support for LWP::UserAgent
https://metacpan.org/pod/LWP::Protocol::https
Other
16 stars 35 forks source link

Proxy test failures #49

Closed DrHyde closed 7 years ago

DrHyde commented 7 years ago

Using perl 5.22.3 on Linux I am consistently getting the following failures ...

# creating cert for direct.ssl.access
# creating cert for direct.ssl.access
# creating cert for foo
# creating cert for foo

#   Failed test 'proxy https://foo/bar -> C.9.Tauth@foo'
#   at t/https_proxy.t line 182.
#          got: '6.2.Tauth@foo'
#     expected: 'C.9.Tauth@foo'
# HTTP/1.1 200 ok
# Connection: close
# Content-Length: 85
# Content-Type: text/plain
# Client-Date: Fri, 21 Apr 2017 12:17:47 GMT
# Client-Peer: 127.0.0.1:58862
# Client-Response-Num: 1
# 
# ID: 6.2.Tauth@foo
# ---------
# GET /bar HTTP/
# Host: foo
# User-Agent: libwww-perl/6.26
# creating cert for bar
# creating cert for bar

#   Failed test 'proxy https://bar/bar -> F.3.Tauth@bar'
#   at t/https_proxy.t line 182.
#          got: '8.2.Tauth@bar'
#     expected: 'F.3.Tauth@bar'
# HTTP/1.1 200 ok
# Connection: close
# Content-Length: 85
# Content-Type: text/plain
# Client-Date: Fri, 21 Apr 2017 12:17:47 GMT
# Client-Peer: 127.0.0.1:58862
# Client-Response-Num: 1
# 
# ID: 8.2.Tauth@bar
# ---------
# GET /bar HTTP/
# Host: bar
# User-Agent: libwww-perl/6.26
# creating cert for foo

#   Failed test 'proxy https://foo/tor -> C.10.Tauth@foo'
#   at t/https_proxy.t line 182.
#          got: '9.2.Tauth@foo'
#     expected: 'C.10.Tauth@foo'
# HTTP/1.1 200 ok
# Connection: close
# Content-Length: 85
# Content-Type: text/plain
# Client-Date: Fri, 21 Apr 2017 12:17:47 GMT
# Client-Peer: 127.0.0.1:58862
# Client-Response-Num: 1
# 
# ID: 9.2.Tauth@foo
# ---------
# GET /tor HTTP/
# Host: foo
# User-Agent: libwww-perl/6.26
# creating cert for bar

#   Failed test 'proxy https://bar/tor -> F.4.Tauth@bar'
#   at t/https_proxy.t line 182.
#          got: '10.2.Tauth@bar'
#     expected: 'F.4.Tauth@bar'
# HTTP/1.1 200 ok
# Connection: close
# Content-Length: 86
# Content-Type: text/plain
# Client-Date: Fri, 21 Apr 2017 12:17:47 GMT
# Client-Peer: 127.0.0.1:58862
# Client-Response-Num: 1
# 
# ID: 10.2.Tauth@bar
# ---------
# GET /tor HTTP/
# Host: bar
# User-Agent: libwww-perl/6.26
# creating cert for foo
# creating cert for foo
# creating cert for bar
# creating cert for bar
# Looks like you failed 4 tests of 56.
t/https_proxy.t .. 
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/56 subtests 

In case it matters I have dependencies ...

Checking if you have IO::Socket::SSL 1.54 ... Yes (2.046)
Checking if you have Mozilla::CA 20110101 ... Yes (20130114)
Checking if you have Net::HTTPS 6 ... Yes (6.09)
Checking if you have Test::More 0 ... Yes (1.302075)
Checking if you have LWP::UserAgent 6.06 ... Yes (6.26)
Checking if you have Test::RequiresInternet 0 ... Yes (0.05)
DrHyde commented 7 years ago

I can no longer replicate this. Not sure what was going on.