From 3b87163f5a6d1408199d0908b34d039eabbfdd68 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 9 Sep 2021 08:23:48 -0300 Subject: [PATCH] Bug 28722: Regression tests To test: 1. Apply this patch 2. Run: $ kshell k$ prove tt/db_dependent/api/v1/oauth.t => FAIL: Tests fail! Signed-off-by: Tomas Cohen Arazi https://bugs.koha-community.org/show_bug.cgi?id=28772 --- t/db_dependent/api/v1/oauth.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/api/v1/oauth.t b/t/db_dependent/api/v1/oauth.t index 4e464d53f2..c9381796e8 100755 --- a/t/db_dependent/api/v1/oauth.t +++ b/t/db_dependent/api/v1/oauth.t @@ -97,7 +97,7 @@ subtest 'Net::OAuth2::AuthorizationServer missing tests' => sub { my $form_data = { grant_type => 'client_credentials', client_id => $api_key->client_id, - client_secret => $api_key->secret + client_secret => $api_key->plain_text_secret }; $t->post_ok( '/api/v1/oauth/token', form => $form_data )->status_is(200) @@ -138,7 +138,7 @@ sub run_oauth_tests { my $formData; my $client_id = $api_key->client_id; - my $client_secret = $api_key->secret; + my $client_secret = $api_key->plain_text_secret; if ( $test_case eq 'header' ) { @@ -154,7 +154,7 @@ sub run_oauth_tests { $formData = { grant_type => 'client_credentials', client_id => $api_key->client_id, - client_secret => $api_key->secret + client_secret => $api_key->plain_text_secret }; $t->post_ok('/api/v1/oauth/token', form => $formData) -- 2.33.0