Three test that show the requested_path in various conditions: 1. Accessing a show with no vhost 2. Access the show with a vhost that contains a path 3. Access the show with a vhost with no path
Fold reducing a btree with with end_key_gt was not producing the correct values. For example, for view queries with startkey and starkey_docid and/or endkey and endkey_docid and inclusive_end set to false, the doc ID component of the view keys was not respected. Example query: http://server:5984/db/_design/test/_view/myview?startkey=4&endkey=6&endkey_docid=5&inclusive_end=false Closes COUCHDB-1413
WebKit browsers seem to execute the success callback too fast for CouchDB to complete the _config PUT for creating admins. We'll be waiting for 200ms to let CouchDB catch up.
Fix two bad assumptions: - The server restarts on the same port Change replicator_db test which verifies that replications described by _replicator documents survive restart to use non-HTTP db references. - The config port matches the port in the CouchDB request URL.
Assert that all tests pass and save the error code from the couchjs invocation. Make check will actually fail when JS CLI tests fail.
Nothing in couchjs assumes that multiple arguments to the couchjs `print` function is sensible. The call signature changes to take an optional second parameter - a true value prints to stderr. From this point forward, console.log in the JS CLI prints to stderr.
couchjs: - report stacktraces on exceptions using JS_ReportError - responds with a trace and message on errors when possible - propogate Error-like objects from validate_doc_update to the loop - make Error-like object play nicely with couch_os_process couch.js: - transform HTTP error response bodies into an Error instance to capture stack information cli tests: - print a stacktrace for individual test failures when running the suite Fix COUCHDB-111 Fix COUCHDB-1389