diff options
author | Damien F. Katz <damien@apache.org> | 2010-06-23 19:11:50 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2010-06-23 19:11:50 +0000 |
commit | feb18bd6efc40126bdb4af390419223e10ef134d (patch) | |
tree | 0833e401ab28327acf5f377bb929fe8d351502c8 /share/www/script/test | |
parent | 918f8bf54a4aeffc3c0ef4ad1fa31ce93bbc1346 (diff) |
Authentication caching, to avoid repeated opening and closing of the users database for each request requiring authentication. COUCHDB-807
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957314 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test')
-rw-r--r-- | share/www/script/test/users_db.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/www/script/test/users_db.js b/share/www/script/test/users_db.js index 77069c98..b85adf08 100644 --- a/share/www/script/test/users_db.js +++ b/share/www/script/test/users_db.js @@ -24,8 +24,6 @@ couchTests.users_db = function(debug) { // to determine the actual users db name. function testFun() { - usersDb.deleteDb(); - // test that the validation function is installed var ddoc = usersDb.open("_design/_auth"); T(ddoc.validate_doc_update); @@ -89,10 +87,12 @@ couchTests.users_db = function(debug) { }; + usersDb.deleteDb(); run_on_modified_server( [{section: "couch_httpd_auth", - key: "authentication_db", value: "test_suite_users"}], + key: "authentication_db", value: usersDb.name}], testFun ); + usersDb.deleteDb(); // cleanup }
\ No newline at end of file |