[open-ils-commits] [GIT] Evergreen ILS branch master updated. 1421240a4a4bf7daf8578c1a1e21cd51b703603a

Evergreen Git git at git.evergreen-ils.org
Sat Sep 7 12:27:41 EDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  1421240a4a4bf7daf8578c1a1e21cd51b703603a (commit)
      from  5d9bc6600a40c1ade1387b45edb64dc8fa39543d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1421240a4a4bf7daf8578c1a1e21cd51b703603a
Author: Ben Shum <ben at evergreener.net>
Date:   Sat Sep 7 12:26:14 2019 -0400

    LP#1817645: Fix pgtap tests
    
    There was a missing closing parenthesis on the pgtap tests from
    this new feature.
    
    Also, one of the comparisons had the wrong value matching and it
    failed to pass. Inactive patrons return "not_found" rather than
    "blocked" apparently.
    
    Signed-off-by: Ben Shum <ben at evergreener.net>

diff --git a/Open-ILS/src/sql/Pg/live_t/lp1817645-remoteauth.pg b/Open-ILS/src/sql/Pg/live_t/lp1817645-remoteauth.pg
index 2982d0a3db..1fc22ec89f 100644
--- a/Open-ILS/src/sql/Pg/live_t/lp1817645-remoteauth.pg
+++ b/Open-ILS/src/sql/Pg/live_t/lp1817645-remoteauth.pg
@@ -17,43 +17,43 @@ SELECT isnt_empty(
 );
 
 SELECT is(
-  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393000')),
+  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393000'))),
   'not_found',
   'Confirm remoteauth test for nonexistent patron'
 );
 
 SELECT is(
-  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393001')),
+  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393001'))),
   'expired',
   'Confirm remoteauth test for expired patron'
 );
 
 SELECT is(
-  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393002')),
+  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393002'))),
   'not_found',
   'Confirm remoteauth test for deleted patron'
 );
 
 SELECT is(
-  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393003')),
+  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393003'))),
   'blocked',
   'Confirm remoteauth test for barred patron'
 );
 
 SELECT is(
-  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393004')),
+  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393004'))),
   'success',
   'Confirm remoteauth test for valid patron'
 );
 
 SELECT is(
-  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393005')),
-  'blocked',
+  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393005'))),
+  'not_found',
   'Confirm remoteauth test for inactive patron'
 );
 
 SELECT is(
-  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393100')),
+  (SELECT * FROM actor.permit_remoteauth('Basic', (SELECT id FROM actor.usr WHERE usrname = '99999393100'))),
   'not_found',
   'Confirm remoteauth test for external patron'
 );

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/sql/Pg/live_t/lp1817645-remoteauth.pg | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list