summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2010-01-12Add utility for verifying hashes.Jason David Davies
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@898477 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23Follow RFC 2616 closer and use "verb" instead of "method"Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893364 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22move query server to a design-doc based protocol, closes COUCHDB-589John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893249 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16Provide Content-MD5 header support for attachments.Paul Joseph Davis
Fixes COUCHDB-558. Thanks to Filipe Manana we now have checks for attachment transfer integrity using the Content-MD5 header (or trailer). Use of this integrity check is triggered by specifying a Content-MD5 header in your request with a value that is a base64 encoded md5. For requests that are using a chunked Transfer-Encoding it is also possible to use a trailer so that the Content-MD5 doesn't need to be known before transfer. This works by specifying a header "Trailer: Content-MD5" and then in the final chunk (the one with a size of zero) you can specify a Content-MD5 with exactly the same format as in the request headers. See the ETap test 130-attachments-md5.t for explicit examples of the request messages. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@891077 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15fix query_server_spec.rb for changes in the build processJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@890898 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02removed add_fun optimization for filters, this provides better concurrency ↵John Christopher Anderson
at the cost of some function transfer/eval overhead, which will be optimized in a future patch. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@886334 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02Fixes for make distcheck in the test/bench directory.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@886034 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01fixed paths for query_server_spec.rbJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@885994 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Updated the benchmarks to use the new cURL adapter.Paul Joseph Davis
Moved the bench directory into the tests directory. Refactored the benchmarks to reuse more of the code from the JavaScript CLI test runner. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884716 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Remove test/javascript/run for distcheck.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884683 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Forgot to add SCRIPT variable for test/javascript/runPaul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884679 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Setup JavaScript command line runner.Paul Joseph Davis
All JS tests can now be run from the command line using the cURL adapter. In the future I would like to rework this and provide better TAP output. For now, each test is a single TAP assert. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884675 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Complete refactoring of couch_js.Paul Joseph Davis
In particular, the cURL bindings have been rewritten to be more useful and easily applied in command line scripts. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884672 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Move all C code to src/couchdb/privPaul Joseph Davis
Shuffling bits around to conform to Erlang conventions. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884671 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13Fix broken etap test.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@835997 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13Initial check-in of APIs for multiple/related supported and incremental ↵Damien F. Katz
replication of only changed attachments. Needs more far more testing and to be hooked up the replicator. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@835981 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09Unverbosifiying after the last successful build.Paul Joseph Davis
Adding -v to the prove command made things work. How awesome is that? git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833967 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09Turn on verbose tests to diagnose buildbotPaul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833966 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09Forgot to fix make coverPaul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833956 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09Fixes 'make distcheck' to run the test suite.Paul Joseph Davis
Quite a few changes to the build system to handle VPATH builds appropriately as well as make the test suite know about them. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833951 13f79535-47bb-0310-9956-ffa450edef68
2009-11-08Fixed a couple test suite errors.Paul Joseph Davis
001-load.t's plan changed with the batch modules being removed. 121-status-aggregates.t and 041-uuid-gen.t needed their plan counts to be updated from unkown. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833825 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03Added batching of multiple updating requests, to improve throughput with ↵Damien F. Katz
many writers. Also removed the couch_batch_save module, now batch requests are simply saved async as immediately, batching with outhr updates if possible. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832550 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02only test list old api for js query serversJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832034 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24Fixed the test for couch_stats_aggregator.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829456 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08Confused frontport. All is well.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@823019 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08Port Noah's build fixes back to trunk.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@823017 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29Fixed a memory usage test.Paul Joseph Davis
Noah reported that forcing garbage collection only worked when allocating more terms. This ups the test number to what worked for him. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819977 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29Add ETap to CouchDB's SVN repository.Paul Joseph Davis
This pulls in ETap as an included dependency. As per directions of the ASF the NOTICE and LICENSE have been updated. Tests have been updated to include etap on Erlang's code path. license.skip was updated for make distcheck. This only affects running the Erlang test suite. Noah is awesome. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819799 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27Forgot to update the plan count.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819343 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27Fixed 040-util.t test from deadlocking.Paul Joseph Davis
When we started the linked process to kill with couch_util:terminate_linked/1, we weren't waiting for the child process to start. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819341 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27Remove crap to test buildbot.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819265 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27A single sub-assert deactivated for buildbot.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819263 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27Add a test for couch_erl_driver.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819254 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21Updated the headers for test config files.Paul Joseph Davis
Set the executable bit for the stats tests. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817277 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17Fixes COUCHDB-396Paul Joseph Davis
Makes the stats calculated over a moving window isntead of calculated for non-overlapping timeframes. This should make trend monitoring more robust. Thanks once again to Bob Dionne for double checking this. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@816043 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15update etap tests to reflect changes in couch_btree, patch by Bob Dionne, ↵Jan Lehnardt
closes COUCHDB-503 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815266 13f79535-47bb-0310-9956-ffa450edef68
2009-09-13allow config callbacks to get passed the X-Couch-Persist flagJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814300 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11Refactoring of endkey code in views and btrees. End key functionaility is ↵Damien F. Katz
now handled inside the btree code, simplfying calling code and making it trivial to add new collation options git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814078 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09choice of uuid algos for better insert perf. Closes COUCHDB-465. Thanks ↵Adam Kocoloski
rnewson, bitdiddle git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@813051 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02fix make check, patch by Bob Dionne, closes COUCHDB-493Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810485 13f79535-47bb-0310-9956-ffa450edef68
2009-08-29remove legacy erlang tests, etap covers theseJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@809158 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28fix pattern matching bug in redirects for replicationAdam Kocoloski
if opening the DB returns 301, use the new URL for the rest of the replication git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808876 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25update etap; missing_revs output now includes DB update_seqAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807468 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21Munge all ErlJSON to use binaries.Paul Joseph Davis
Our flavor of ErlJSON has this interesting characteristic: {[{foo, bar}]} == {[{<<"foo">>, <<"bar">>}]} This is fine and dandy for writing ErlJSON that is going to go directly to a serializer, but when it goes to client code executing in couch_native_process.erl it becomes a pain in the but to know whether to use atoms or binaries. This patch munges all input to user functions to use binaries except for null, true, and false obviously. This fixes the commented out test in erlang_views.js as well as adds a show to poke into the request object that has known instances of where things get munged. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@806732 13f79535-47bb-0310-9956-ffa450edef68
2009-08-19make httpc test work in R12B (no macros allowed)Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@805649 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17Updated license.skip. Added license to test/run_native_process.esPaul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@805067 13f79535-47bb-0310-9956-ffa450edef68
2009-08-16Set executable bit on etap tests.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804739 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12Introduces native Erlang query servers. Closes COUCHDB-377John Christopher Anderson
Thanks Mark Hammond and Paul Davis for doing most of the work, and Michael McDaniel for the inspiration. There is still room for improvement on the APIs exposed to the Erlang views, as well as likely a whole lot of work to be done to increase parallelism. But the important part now is that we have native Erlang views. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803685 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11Initial commit of _update handler. Thanks to Paul Davis, Jason Davies for ↵John Christopher Anderson
code and others for discussion. The _update handler accepts POSTs to paths like: /db/_design/foo/_update/bar and PUTs which include docids, like: /db/_design/foo/_update/bar/docid The function signature: function(doc, req) { doc.a_new_field = req.query.something; return [doc, "<h1>added something to your doc</h1>"]; } The tests in update_documents.js are fairly complete and include examples of bumping a counter, changing only a single field, parsing from (and returning) XML, and creating new documents. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803245 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10remove leftover line from testAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802636 13f79535-47bb-0310-9956-ffa450edef68