summaryrefslogtreecommitdiff
path: root/share/www/script/test/users_db.js
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-07-13 14:25:03 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-07-13 14:25:03 +0000
commit934693735ad6c6358a240a466d4ce121f150e1aa (patch)
treedee4dfd01224c0df892c1ca1b200bb8a12c8bb14 /share/www/script/test/users_db.js
parent9599f7cd77ef8a6feacec3c8ead9432af02a57d3 (diff)
test and fix for deleting users documents
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@963723 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/users_db.js')
-rw-r--r--share/www/script/test/users_db.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/www/script/test/users_db.js b/share/www/script/test/users_db.js
index b85adf08..667ff3c1 100644
--- a/share/www/script/test/users_db.js
+++ b/share/www/script/test/users_db.js
@@ -85,8 +85,13 @@ couchTests.users_db = function(debug) {
T(/conflict/.test(e.reason))
}
+ // you can delete a user doc
+ s = CouchDB.session().userCtx;
+ T(s.name == null);
+ T(s.roles.indexOf("_admin") !== -1);
+ T(usersDb.deleteDoc(jchrisWithConflict).ok);
};
-
+
usersDb.deleteDb();
run_on_modified_server(
[{section: "couch_httpd_auth",