From: Galen Charlton Date: Mon, 9 Sep 2019 19:27:19 +0000 (-0400) Subject: LP#1817645: adjust live_t remoteauth checks X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0af1850ad882e25c88fd0f5e9e8dd24f05721e92;p=evergreen%2Fmasslnc.git LP#1817645: adjust live_t remoteauth checks Version 6.07 or higher of LWP::Protocol::https is required to avoid an issue where an SSL certificate check of localhost cannot be bypassed. We could instead have chosen to install that Perl module from CPAN rather than packages, but since there's presently no non-test code that requires that bugfix, I've elected not to bother installing that module from CPAN for now. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/perlmods/live_t/29-lp1817645-remoteauth-patron-api.t b/Open-ILS/src/perlmods/live_t/29-lp1817645-remoteauth-patron-api.t index e2c7bb28b7..6963feb9eb 100644 --- a/Open-ILS/src/perlmods/live_t/29-lp1817645-remoteauth-patron-api.t +++ b/Open-ILS/src/perlmods/live_t/29-lp1817645-remoteauth-patron-api.t @@ -1,6 +1,16 @@ #!perl -use Test::More tests => 10; # XXX +use Test::More; + +# need at least 6.07 of LWP::Protocol::https to avoid +# an issue where it cannot successfully bypass a +# certificate check of localhost +eval 'use LWP::Protocol::https 6.07'; +if ($@) { + plan skip_all => 'LWP::Protocol::https 6.0.7 or later required for live tests of remoteauth' if $@; +} else { + plan tests => 10; +} diag("Tests RemoteAuth patron auth/retrieval");