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 <[email protected]> Authored: Wed Dec 16 20:49:33 2015 +0100 Committer: Jan Lehnardt <[email protected]> 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 == "[email protected]"); 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}],
