LP#1817645: fix live perl test for basic auth API
authorBen Shum <ben@evergreener.net>
Sun, 8 Sep 2019 21:21:18 +0000 (17:21 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 9 Sep 2019 19:01:38 +0000 (15:01 -0400)
The live perl test is failing because we are not passing all
the right parameters for ignoring the SSL certificate verification
checks. Pass another variable to see if this helps.

Signed-off-by: Ben Shum <ben@evergreener.net>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/src/perlmods/live_t/29-lp1817645-remoteauth-patron-api.t

index 6732d6c..e2c7bb2 100644 (file)
@@ -40,7 +40,10 @@ my $e = new_editor( authtoken => $staff_login->{payload}->{authtoken} );
 $e->init;
 
 my $client = LWP::UserAgent->new;
-$client->ssl_opts( verify_hostname => 0 );
+$client->ssl_opts(
+    SSL_verify_mode => 0,
+    verify_hostname => 0
+);
 
 # my $res = $client->request( $method, $uri, $headers, $content, $request_timeout );