couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [31/50] couchdb commit: updated refs/heads/master to e8e03b6
Date Wed, 16 Dec 2015 21:15:32 GMT
JS test: update users_db.js for 2.0


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

Branch: refs/heads/master
Commit: f869bf32712974c9c771c4e1f06ffbd09cf911c9
Parents: b17d71b
Author: Jan Lehnardt <jan@apache.org>
Authored: Wed Dec 16 20:49:33 2015 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Wed Dec 16 20:49:33 2015 +0100

----------------------------------------------------------------------
 test/javascript/tests/users_db.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/f869bf32/test/javascript/tests/users_db.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/users_db.js b/test/javascript/tests/users_db.js
index 56dae6b..b21bc9e 100644
--- a/test/javascript/tests/users_db.js
+++ b/test/javascript/tests/users_db.js
@@ -11,10 +11,13 @@
 // the License.
 
 couchTests.users_db = function(debug) {
+  return console.log('TODO: config not available on cluster');
+
   // This tests the users db, especially validations
   // this should also test that you can log into the couch
   
-  var usersDb = new CouchDB("test_suite_users", {"X-Couch-Full-Commit":"false"});
+  var users_db_name = get_random_db_name();
+  var usersDb = new CouchDB(users_db_name, {"X-Couch-Full-Commit":"false"});
 
   // test that you can treat "_user" as a db-name
   // this can complicate people who try to secure the users db with 
@@ -45,7 +48,7 @@ couchTests.users_db = function(debug) {
     });
     T(s.userCtx.name == "jchris@apache.org");
     T(s.info.authenticated == "default");
-    T(s.info.authentication_db == "test_suite_users");
+    T(s.info.authentication_db == "" + users_db_name + "");
     TEquals(["oauth", "cookie", "default"], s.info.authentication_handlers);
     var s = CouchDB.session({
       headers : {
@@ -162,7 +165,6 @@ couchTests.users_db = function(debug) {
 
   };
 
-  usersDb.deleteDb();
   run_on_modified_server(
     [{section: "couch_httpd_auth",
       key: "authentication_db", value: usersDb.name}],


Mime
View raw message