From 7099c31bfbdc374b8a217e0112bc56a3618258a8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 11 Jul 2025 14:33:02 +0200 Subject: [PATCH] Bug 40348: Remove warnings from api/v1/two_factor_auth.t 02:28:36 koha_1 | WARNING: The key derivation method "opensslv1" is deprecated. Using -pbkdf=>'pbkdf2' would be better. 02:28:36 koha_1 | Pass -nodeprecate=>1 to inhibit this message. 02:28:36 koha_1 | at /kohadevbox/koha/Koha/Patron.pm line 3216. We should deal with that on a separate bug report. For now we can remove the warnings from the log/output. --- Koha/Encryption.pm | 5 +++-- t/db_dependent/api/v1/two_factor_auth.t | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Koha/Encryption.pm b/Koha/Encryption.pm index b18f75a9d4a..4cecb6e2820 100644 --- a/Koha/Encryption.pm +++ b/Koha/Encryption.pm @@ -61,8 +61,9 @@ sub new { ); } return $class->SUPER::new( - -key => $encryption_key, - -cipher => 'Cipher::AES' + -key => $encryption_key, + -cipher => 'Cipher::AES', + -nodeprecate => 1, ); } diff --git a/t/db_dependent/api/v1/two_factor_auth.t b/t/db_dependent/api/v1/two_factor_auth.t index 1ddc0cd4b53..ddb9178e3a2 100755 --- a/t/db_dependent/api/v1/two_factor_auth.t +++ b/t/db_dependent/api/v1/two_factor_auth.t @@ -17,7 +17,8 @@ use Modern::Perl; -use Test::More tests => 2; +use Test::More tests => 3; +use Test::NoWarnings; use Test::Mojo; use Test::MockModule; -- 2.34.1