couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [4/9] couchdb commit: updated refs/heads/test4th to 01edf89
Date Mon, 25 Apr 2016 11:53:32 GMT
Bring show documents test back


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/31a83b55
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/31a83b55
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/31a83b55

Branch: refs/heads/test4th
Commit: 31a83b552c16524b4825f72f5c5d2789cef4f342
Parents: 17bbf26
Author: sebastianro <sebastianro@apache.org>
Authored: Fri Apr 15 14:49:25 2016 +0200
Committer: sebastianro <sebastianro@apache.org>
Committed: Sat Apr 23 19:22:36 2016 +0200

----------------------------------------------------------------------
 test/javascript/tests/show_documents.js | 25 ++++++-------------------
 1 file changed, 6 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/31a83b55/test/javascript/tests/show_documents.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/show_documents.js b/test/javascript/tests/show_documents.js
index 4987afc..82d66ae 100644
--- a/test/javascript/tests/show_documents.js
+++ b/test/javascript/tests/show_documents.js
@@ -11,7 +11,6 @@
 // the License.
 
 couchTests.show_documents = function(debug) {
-  return console.log('TODO: config not available on cluster');
 
   var db_name = get_random_db_name();
   var db = new CouchDB(db_name, {"X-Couch-Full-Commit":"false"});
@@ -393,24 +392,12 @@ couchTests.show_documents = function(debug) {
   var xhr = CouchDB.request("GET", "/" + db_name + "/_design/template/_show/show-deleted/testdoc");
   TEquals("No doc testdoc", xhr.responseText, "should return 'no doc testdoc'");
 
-
-  run_on_modified_server(
-    [{section: "httpd",
-      key: "authentication_handlers",
-      value: "{couch_httpd_auth, special_test_authentication_handler}"},
-     {section:"httpd",
-      key: "WWW-Authenticate",
-      value:  "X-Couch-Test-Auth"}],
-
-      function() {
-        T(db.setDbProperty("_security", {foo: true}).ok);
-        T(db.save({_id:"testdoc",foo:1}).ok);
-
-        xhr = CouchDB.request("GET", "/" + db_name + "/_design/template/_show/secObj");
-        var resp = JSON.parse(xhr.responseText);
-        T(resp.foo == true);
-      }
-  );
+  // (we don't need no modified server!)
+  T(db.setDbProperty("_security", {foo: true}).ok);
+  T(db.save({_id:"testdoc",foo:1}).ok);
+  xhr = CouchDB.request("GET", "/" + db_name + "/_design/template/_show/secObj");
+  var resp = JSON.parse(xhr.responseText);
+  T(resp.foo == true);
 
   // cleanup
   db.deleteDb();


Mime
View raw message