couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couchdb commit: updated refs/heads/auth-tests-wip to 7ac805e
Date Tue, 21 Jun 2016 12:23:47 GMT
Repository: couchdb
Updated Branches:
  refs/heads/auth-tests-wip f951e9fd8 -> 7ac805e37


remove upgrade on auth test


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/7ac805e3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/7ac805e3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/7ac805e3

Branch: refs/heads/auth-tests-wip
Commit: 7ac805e37da00591527ffb8e9fbf08c6f82f03a1
Parents: f951e9f
Author: Robert Newson <rnewson@apache.org>
Authored: Tue Jun 21 13:23:34 2016 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Tue Jun 21 13:23:34 2016 +0100

----------------------------------------------------------------------
 test/javascript/tests/users_db_security.js | 32 -------------------------
 1 file changed, 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/7ac805e3/test/javascript/tests/users_db_security.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/users_db_security.js b/test/javascript/tests/users_db_security.js
index 355bb03..e66b3ec 100644
--- a/test/javascript/tests/users_db_security.js
+++ b/test/javascript/tests/users_db_security.js
@@ -148,38 +148,6 @@ couchTests.users_db_security = function(debug) {
       TEquals(true, userDoc.derived_key != jchrisDoc.derived_key,
         "should have new derived_key");
 
-      // SHA-1 password hashes are upgraded to PBKDF2 on successful
-      // authentication
-      var rnewsonDoc = {
-        _id: "org.couchdb.user:rnewson",
-        type: "user",
-        name: "rnewson",
-        // password: "plaintext_password",
-        password_sha: "e29dc3aeed5abf43185c33e479f8998558c59474",
-        salt: "24f1e0a87c2e374212bda1073107e8ae",
-        roles: []
-      };
-
-      var password_sha = rnewsonDoc.password_sha,
-        salt = rnewsonDoc.salt,
-        derived_key,
-        iterations;
-
-      usersDb.save(rnewsonDoc);
-      rnewsonDoc = open_as(usersDb, rnewsonDoc._id, "jan");
-      T(!rnewsonDoc.password_scheme);
-      T(!rnewsonDoc.derived_key);
-      T(!rnewsonDoc.iterations);
-
-      // check that we don't upgrade when the password is wrong
-      TEquals("unauthorized", CouchDB.login("rnewson", "wrong_password").error);
-      rnewsonDoc = open_as(usersDb, rnewsonDoc._id, "jan");
-      TEquals(salt, rnewsonDoc.salt);
-      TEquals(password_sha, rnewsonDoc.password_sha);
-      T(!rnewsonDoc.password_scheme);
-      T(!rnewsonDoc.derived_key);
-      T(!rnewsonDoc.iterations);
-
       wait(5000); // wait for auth cache invalidation
       var r = CouchDB.login("rnewson", "plaintext_password")
       log(r)


Mime
View raw message