summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2014-03-25 15:02:50 +0000
committerRobert Newson <rnewson@apache.org>2014-05-21 17:03:15 +0100
commit66627720b8828efe2e9084ebb5cd33c3bf5e0b23 (patch)
tree031de06208f27970dc396710590e447518cb7325 /share
parent45e88835d4cacda86b94321756369320012d83f7 (diff)
downloadcouchdb-66627720b8828efe2e9084ebb5cd33c3bf5e0b23.tar.gz
Configurable upper bound to _uuids count parameter
Diffstat (limited to 'share')
-rw-r--r--share/www/script/test/uuids.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/test/uuids.js b/share/www/script/test/uuids.js
index 6f5d223a6..d304c4e95 100644
--- a/share/www/script/test/uuids.js
+++ b/share/www/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",