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 | |
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')
-rw-r--r-- | share/Makefile.am | 1 | ||||
-rw-r--r-- | share/www/script/couch_tests.js | 1 | ||||
-rw-r--r-- | share/www/script/test/users_db.js | 6 |
3 files changed, 5 insertions, 3 deletions
diff --git a/share/Makefile.am b/share/Makefile.am index 935815a2..3c4b5da5 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -110,6 +110,7 @@ nobase_dist_localdata_DATA = \ www/script/test/attachment_names.js \ www/script/test/attachment_paths.js \ www/script/test/attachment_views.js \ + www/script/test/auth_cache.js \ www/script/test/basics.js \ www/script/test/batch_save.js \ www/script/test/bulk_docs.js \ diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 4225ce7a..383d2ee6 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -35,6 +35,7 @@ loadTest("attachments_multipart.js"); loadTest("attachment_names.js"); loadTest("attachment_paths.js"); loadTest("attachment_views.js"); +loadTest("auth_cache.js"); loadTest("batch_save.js"); loadTest("bulk_docs.js"); loadTest("changes.js"); 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 |