noxxi / p5-io-socket-ssl

IO::Socket::SSL Perl Module
36 stars 59 forks source link

t/external/ocsp.t: Failing external test #125

Closed jkeenan closed 1 year ago

jkeenan commented 1 year ago

In the past few days I have experienced difficulties installing IO::Socket::SSL against Perl's main development branch known as blead).

[bullseye:IO-Socket-SSL-2.081] 2037 $ $THISPERL -v | head -2 | tail -1
This is perl 5, version 37, subversion 9 (v5.37.9 (v5.37.8-155-g09fbd16e8a)) built for x86_64-linux-thread-multi

[bullseye:IO-Socket-SSL-2.081] 2038 $ $THISPERL -V:config_args
config_args='-des -Dusedevel -Dusethreads -Uversiononly -Dprefix=/home/jkeenan/testing/threaded_blead -Dman1dir=none -Dman3dir=none';

[bullseye:IO-Socket-SSL-2.081] 2039 $ $THISPROVE -V
TAP::Harness v3.44 and Perl v5.37.9
[bullseye:IO-Socket-SSL-2.081] 2040 $ $THISPROVE -vb t/external/ocsp.t 
t/external/ocsp.t .. 
1..3
# tcp connect to www.chksum.de:443 ok
# fingerprint matches
# validation with default CA w/o OCSP ok
not ok 1 - did not get expected OCSP response with stapling

#   Failed test 'did not get expected OCSP response with stapling'
#   at t/external/ocsp.t line 100.
# tcp connect to www.bild.de:443 ok
ok 2 # skip fingerprints do not match
# tcp connect to revoked.grc.com:443 ok
ok 3 # skip SSL upgrade w/o validation failed: SSL connect attempt failed
# Looks like you failed 1 test of 3.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 
    (less 2 skipped subtests: 0 okay)

Test Summary Report
-------------------
t/external/ocsp.t (Wstat: 256 (exited 1) Tests: 3 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=1, Tests=3,  1 wallclock secs ( 0.02 usr  0.01 sys +  0.11 cusr  0.00 csys =  0.14 CPU)
Result: FAIL

This has occurred with both cpanm and cpan as installers. This failure prevents me from installing Task::CPAN::Reporter and reporting failures against blead to CPANtesters. When I rerun $THISPERL Makefile.PL and select n for external tests, the failing test is not run and I can then proceed.

Perhaps there is something amiss with the host that test uses?

noxxi commented 1 year ago

not ok 1 - did not get expected OCSP response with stapling

Looks like there was some hiccup at a server which did not return the expected stapled OCSP response. Should be fixed now.