[open-ils-commits] [GIT] Evergreen ILS branch master updated. 6cd11aaef347cf34b2c0a904a0a0c4b0c264997d

Evergreen Git git at git.evergreen-ils.org
Wed Mar 15 08:54:30 EDT 2017


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  6cd11aaef347cf34b2c0a904a0a0c4b0c264997d (commit)
      from  9793d47e12fe00be9ffcbb519bd22861e299192c (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 6cd11aaef347cf34b2c0a904a0a0c4b0c264997d
Author: Kathy Lussier <klussier at masslnc.org>
Date:   Wed Mar 15 08:37:25 2017 -0400

    LP#1673059: Update passwd storage test
    
    The passwd storage PgTAP test is failing because the user ids shifted when new
    sample records were added to the actor.usr table in the Concerto dataset. This
    branch changes the id in the test to point to the correct user.
    
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>
    Signed-off-by: Ben Shum <ben at evergreener.net>

diff --git a/Open-ILS/src/sql/Pg/live_t/lp1468422_passwd_storage.pg b/Open-ILS/src/sql/Pg/live_t/lp1468422_passwd_storage.pg
index 30c8ad1..18b7cdd 100644
--- a/Open-ILS/src/sql/Pg/live_t/lp1468422_passwd_storage.pg
+++ b/Open-ILS/src/sql/Pg/live_t/lp1468422_passwd_storage.pg
@@ -19,30 +19,30 @@ SELECT plan(6);
 
 SELECT ok(
     (SELECT TRUE AS verify_old_pw FROM actor.usr 
-        WHERE id = 187 AND passwd = MD5('montyc1234')),
+        WHERE id = 189 AND passwd = MD5('montyc1234')),
     'Legacy password should match'
 );
 
 SELECT isnt_empty(
-    'SELECT actor.get_salt(187, ''main'')',
+    'SELECT actor.get_salt(189, ''main'')',
     'get_salt() returns a new salt'
 );
 
 SELECT isnt_empty(
-    'SELECT * FROM actor.passwd WHERE usr = 187 AND passwd_type = ''main''',
+    'SELECT * FROM actor.passwd WHERE usr = 189 AND passwd_type = ''main''',
     'get_salt() should migrate the password'
 );
 
 SELECT ok(
-    (SELECT actor.verify_passwd(187, 'main', 
-        MD5(actor.get_salt(187, 'main') || MD5('montyc1234')))),
+    (SELECT actor.verify_passwd(189, 'main', 
+        MD5(actor.get_salt(189, 'main') || MD5('montyc1234')))),
     'verify_passwd should verify migrated password'
 );
 
 SELECT ok(
     (SELECT NOT (
-        SELECT actor.verify_passwd(187, 'main', 
-            MD5(actor.get_salt(187, 'main') || MD5('BADPASSWORD'))))
+        SELECT actor.verify_passwd(189, 'main', 
+            MD5(actor.get_salt(189, 'main') || MD5('BADPASSWORD'))))
     ),
     'verify_passwd should fail with wrong password'
 );
@@ -55,12 +55,12 @@ BEGIN
     -- calls will create a new one.
     SELECT INTO new_salt actor.create_salt('main');
     PERFORM actor.set_passwd(
-        187, 'main', MD5(new_salt || MD5('bobblehead')), new_salt);
+        189, 'main', MD5(new_salt || MD5('bobblehead')), new_salt);
 END $$;
 
 SELECT ok(
-    (SELECT actor.verify_passwd(187, 'main', 
-        MD5(actor.get_salt(187, 'main') || MD5('bobblehead')))),
+    (SELECT actor.verify_passwd(189, 'main', 
+        MD5(actor.get_salt(189, 'main') || MD5('bobblehead')))),
     'verify_passwd should verify new password'
 );
 

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

Summary of changes:
 .../src/sql/Pg/live_t/lp1468422_passwd_storage.pg  |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list