Attachments working and only security left
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/38c340af Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/38c340af Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/38c340af Branch: refs/heads/2876-js-tests Commit: 38c340af0d775a2516174ad01d00cceea86b42db Parents: 83cca5f Author: sebastianro <[email protected]> Authored: Thu Nov 12 20:42:41 2015 +0100 Committer: sebastianro <[email protected]> Committed: Thu Nov 12 21:56:05 2015 +0100 ---------------------------------------------------------------------- test/javascript/tests/replication.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/38c340af/test/javascript/tests/replication.js ---------------------------------------------------------------------- diff --git a/test/javascript/tests/replication.js b/test/javascript/tests/replication.js index b2eafeb..ac7981a 100644 --- a/test/javascript/tests/replication.js +++ b/test/javascript/tests/replication.js @@ -1470,10 +1470,9 @@ couchTests.replication = function(debug) { }; var bigTextAtt = makeAttData(128 * 1024); var attName = "readme.txt"; - var xhr = CouchDB.request("GET", "/_config/attachments/compression_level"); - var compressionLevel = JSON.parse(xhr.responseText); - xhr = CouchDB.request("GET", "/_config/attachments/compressible_types"); - var compressibleTypes = JSON.parse(xhr.responseText); + var oldSettings = getCompressionInfo(); + var compressionLevel = oldSettings.level; + var compressibleTypes = oldSettings.types; for (i = 0; i < dbPairs.length; i++) { populateDb(sourceDb, [doc]);
