couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [47/51] [abbrv] futon commit: updated refs/heads/import-master to 53a86dd
Date Thu, 31 Jul 2014 21:43:37 GMT
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 <rnewson@apache.org>
Authored: Tue Mar 25 15:02:50 2014 +0000
Committer: Robert Newson <rnewson@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",


Mime
View raw message