couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [41/51] [abbrv] futon commit: updated refs/heads/import-master to 53a86dd
Date Thu, 31 Jul 2014 21:43:31 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/c97a98be
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-futon/tree/c97a98be
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-futon/diff/c97a98be

Branch: refs/heads/import-master
Commit: c97a98bea35311b7c05010ed6f12e5679081a467
Parents: bcb1942
Author: Robert Newson <rnewson@apache.org>
Authored: Tue Mar 25 15:02:50 2014 +0000
Committer: Robert Newson <rnewson@apache.org>
Committed: Tue Mar 25 16:16:18 2014 +0000

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


http://git-wip-us.apache.org/repos/asf/couchdb-futon/blob/c97a98be/script/test/uuids.js
----------------------------------------------------------------------
diff --git a/script/test/uuids.js b/script/test/uuids.js
index 6f5d223..0f141a9 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(401, xhr.status, "should error when count > max_count");
+
   run_on_modified_server([{
       "section": "uuids",
       "key": "algorithm",


Mime
View raw message