From 0af1850ad882e25c88fd0f5e9e8dd24f05721e92 Mon Sep 17 00:00:00 2001
From: Galen Charlton <gmc@equinoxinitiative.org>
Date: Mon, 9 Sep 2019 15:27:19 -0400
Subject: [PATCH] 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 <gmc@equinoxinitiative.org>
---
 .../src/perlmods/live_t/29-lp1817645-remoteauth-patron-api.t | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

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");
 
-- 
2.11.0