summaryrefslogtreecommitdiff
path: root/share/www/script/test/basics.js
AgeCommit message (Collapse)Author
2011-08-10Merged revision 1156360 from trunkFilipe David Borba Manana
Prevent data loss on db creation request 1) Create and populate a database 2) Restart the server 3) Send a PUT request to create the database - the server will override the existing file, making all previous documents no longer accessible nor recoverable git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1156361 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18JavaScript tests: avoid global variable declarations.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1036447 13f79535-47bb-0310-9956-ffa450edef68
2010-11-05HTTP proxy handler.Paul Joseph Davis
The second of two new features to replace the _externals protocols. This allows users to configure CouchDB to proxy requests to an external HTTP server. The external HTTP server is not required to be on the same host running CouchDB. The configuration looks like such: [httpd_global_handlers] _google = {couch_httpd_proxy, handle_proxy_req, <<"http://www.google.com">>} You can then hit this proxy at the url: http://127.0.0.1:5984/_google If you add any path after the proxy name, or make a request with a query string, those will be appended to the URL specified in the configuration. Ie: http://127.0.0.1:5984/_google/search?q=plankton would translate to: http://www.google.com/search?q=plankton Obviously, request bodies are handled as expected. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1031877 13f79535-47bb-0310-9956-ffa450edef68
2010-09-16JavaScript test files: adding missing semi-colons (Chrome is sensitive about ↵Filipe David Borba Manana
them, but they're not mandatory according to ECMAScript spec) and removing extra commas. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@997862 13f79535-47bb-0310-9956-ffa450edef68
2010-07-27fix CLI js test suite.Robert Newson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979642 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26Add SSL support to CouchDB.Robert Newson
To enable SSL you need to do three things; 1) enable the httpsd daemon in local.ini (you can just uncomment the line). 2) supply your PEM-encoded cert and key files in the [ssl] section. 3) start CouchDB. CouchDB will now, in addition to handling HTTP on port 5984, accept SSL connections on port 6984. The patch itself adds SSL support by updating the local version of Mochiweb to the latest. The upstream release includes our local tweak to support large numbers and to handle Accept-Encoding headers. Our local Mochiweb fork changed the default idle timeout from 10 seconds to 5 minutes, and it was agreed on #irc to revert this change. The only tweaks to Mochiweb were in mochiweb.app.src (to record the git commit I built from) and the removal of Makefile (replaced by Makefile.am). Futon received many tweaks as we have 'http://' hardcoded all over. All such instances now use window.location.protocol + '//'. CouchDB received a tweak to use the right scheme in couch_httpd:absolute_uri (it now gets it from the Mochireq and not mochiweb_socket_server). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979368 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24use JSON content type in replicator, require it in the _bulk_docs and other ↵John Christopher Anderson
POST apis git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957422 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29add assertion that _all_dbs API existsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@885286 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05typo, thanks David CoallierJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833038 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05add safety net for code accidents where the document id in a doc delete ↵Jan Lehnardt
request got missing accidentally git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833036 13f79535-47bb-0310-9956-ffa450edef68
2009-08-16make tests fast again, use X-Couch-Full-Commit:false for all db operationsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804727 13f79535-47bb-0310-9956-ffa450edef68
2009-08-16Make POST's reflect a provided _id member.Paul Joseph Davis
Fixes COUCHDB-468 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804555 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04encode slashes in db names in Location response header after database ↵Jan Lehnardt
creation, move couch_rep:url_encode/1 to couch_util:url_encode/1, closes COUCHDB-411 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800883 13f79535-47bb-0310-9956-ffa450edef68
2009-07-14wheeeeeeeeNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@794057 13f79535-47bb-0310-9956-ffa450edef68
2009-07-11Create tests in Futon.Paul Joseph Davis
On the test suite page there is now a button that will give you a page to create a custom test that can then be submitted along with JIRA tickets. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@793214 13f79535-47bb-0310-9956-ffa450edef68
2009-07-10fix whitespaceJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@792959 13f79535-47bb-0310-9956-ffa450edef68
2009-07-06trimmed trailing whitespaceNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@791350 13f79535-47bb-0310-9956-ffa450edef68
2009-06-04doh. remove console.logJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@781830 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25Merging new tail append storage into trunk. Upgrades are automatic, once ↵Damien F. Katz
opened by this version old versions of CouchDB will not be able to open the files. As a precaution, you should back-up your production databases before upgrading. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778485 13f79535-47bb-0310-9956-ffa450edef68
2009-05-23added an design doc option so that doc._local_seq can be available in the ↵John Christopher Anderson
map view. Closes COUCHDB-346 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@777757 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10refactor JSON body error handling, also consolidate update_docs JSON ↵John Christopher Anderson
response generation. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773387 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09Check for invalid document members.Paul Joseph Davis
Removes a guard that only checked for fields with integer values. Adds tests to basics.js git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773260 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18Resolves COUCHDB-306 - Wacky error responses to malformed documentsPaul Joseph Davis
Mostly adds improvements to the parsing of Json bodies for _bulk_docs and multi-get queries. Includes tests in basics.js and view_errors.js. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@766373 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10Fixes for leaked file handles, with test.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@763858 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27Location header responses should be absolute URIs, thanks ChristopherJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@758942 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26return a Location header on newly created documents using PUT requestsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@758768 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26return Location header for newly create databasesJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@758723 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26whitespaceJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@758717 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21provide a 404 response on deletion of non-existant docsJohn Christopher Anderson
closes COUCHDB-297 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756948 13f79535-47bb-0310-9956-ffa450edef68
2009-03-13Commit Damien's rep_security branch to trunk. John Christopher Anderson
Changes bulk_docs conflict checking. Breaks file format, see mailing list for data upgrade procedure, or http://wiki.apache.org/couchdb/Breaking_changes git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@753448 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15Reorganize the tests into one file per test. No other changes.John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@744782 13f79535-47bb-0310-9956-ffa450edef68