You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/07/31 23:43:37 UTC

[47/51] [abbrv] futon commit: updated refs/heads/import-master to 53a86dd

Configurable upper bound to _uuids count parameter


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

Branch: refs/heads/import-master
Commit: 37f4d09d0ba1e60746123bfdc1b8eafc07cbe0be
Parents: 649c06c
Author: Robert Newson <rn...@apache.org>
Authored: Tue Mar 25 15:02:50 2014 +0000
Committer: Robert Newson <rn...@apache.org>
Committed: Wed May 21 17:03:15 2014 +0100

----------------------------------------------------------------------
 script/test/uuids.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-futon/blob/37f4d09d/script/test/uuids.js
----------------------------------------------------------------------
diff --git a/script/test/uuids.js b/script/test/uuids.js
index 6f5d223..d304c4e 100644
--- a/script/test/uuids.js
+++ b/script/test/uuids.js
@@ -80,6 +80,10 @@ couchTests.uuids = function(debug) {
     }
   };
 
+  // test max_uuid_count
+  var xhr = CouchDB.request("GET", "/_uuids?count=1001");
+  TEquals(403, xhr.status, "should error when count > max_count");
+
   run_on_modified_server([{
       "section": "uuids",
       "key": "algorithm",