summaryrefslogtreecommitdiff
path: root/test/javascript/couch.js
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2015-06-25 22:32:02 +0200
committerJan Lehnardt <jan@apache.org>2015-06-25 22:32:02 +0200
commitf6c87e41afe6063145be0a5b5a907367020def44 (patch)
tree7307a6de89d1711b8b011394e4c98a2ec6c36220 /test/javascript/couch.js
parentdf1be4f40093aa55cd6b6b80bc3090476bdebe1c (diff)
downloadcouchdb-port-js-tests-to-2.0.tar.gz
js tests: make all_docs.js cluster-capableport-js-tests-to-2.0
Diffstat (limited to 'test/javascript/couch.js')
-rw-r--r--test/javascript/couch.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/javascript/couch.js b/test/javascript/couch.js
index 7e4eeed73..02722a2d6 100644
--- a/test/javascript/couch.js
+++ b/test/javascript/couch.js
@@ -71,9 +71,10 @@ function CouchDB(name, httpHeaders) {
};
// Deletes a document from the database
- this.deleteDoc = function(doc) {
+ this.deleteDoc = function(doc, request_options) {
+ request_options = request_options || "";
this.last_req = this.request("DELETE", this.uri + encodeURIComponent(doc._id)
- + "?rev=" + doc._rev);
+ + "?rev=" + doc._rev + request_options);
CouchDB.maybeThrowError(this.last_req);
var result = JSON.parse(this.last_req.responseText);
doc._rev = result.rev; //record rev in input document
@@ -357,6 +358,8 @@ CouchDB.getVersion = function() {
};
CouchDB.reloadConfig = function() {
+ // diabled until cluser port gets /_config
+ return {};
CouchDB.last_req = CouchDB.request("POST", "/_config/_reload");
CouchDB.maybeThrowError(CouchDB.last_req);
return JSON.parse(CouchDB.last_req.responseText);