Commit Graph

68 Commits

Author SHA1 Message Date
d075e6c638 improvements to the log generator 2014-02-27 15:36:52 -07:00
76b69b7a9e Use the transport's defer method within the client_action to ensure we use the configured promises everywhere. Allow search requests to be made without any arguments. 2014-02-14 16:03:04 -07:00
d5c1d1405c client.ping() requests now set the proper requestTimeout default 2014-02-06 08:48:35 -07:00
5e804b8ba1 fixed a spelling error in the docs 2014-02-05 17:04:35 -07:00
70b51dfa6d stopped using an empty suffix for test/branch stuff, so that things are less confusing down the road when versions change 2014-02-05 09:46:53 -07:00
4680930487 only generate the necessary branch in CI environments 2014-02-05 09:06:52 -07:00
6c5838fbfa Added API generation and Yaml testing for 1.x and 1.0 branches of elasticsearch. 2014-02-05 08:18:19 -07:00
5ff4b6f855 moved away from submodules 2014-02-04 11:24:37 -07:00
56c0160bc3 switched bower-elasticsearch-js submodule to http, prevented the generate script from attempting to update it 2014-01-30 13:58:58 -07:00
5b07717116 worked out bower release process 2014-01-30 13:17:53 -07:00
68c9a7889e updated the API generator to repect the new body.encoding spec field, fixed the check for required body, and added new API methods termventor and mtermvectors 2014-01-21 09:53:10 -07:00
d30cea1db0 Updated the api to include the latest changes, fixed the id of the api-method-index, moved the index out of the
existing menu as to prevent the other options in the menu from being hidden. Added the options of an enum param
to the docs.
2014-01-20 09:25:29 -07:00
149b099fb5 updated the API, fixed the config docs, added a method list to the API pages 2014-01-19 15:44:22 -07:00
9c1c100ee1 updated elasticsearch dep, includes spec based ping and cleaned up the api*.js files a but. Ping once again timesout at 100 ms. 2014-01-17 16:06:07 -07:00
90aa185711 added notes to the API docs regarding the two API versions, and a warning to the config docs. Also updated the client tests to work with the new default 2014-01-17 15:50:06 -07:00
3b15f5f309 fixed the snapshot.create urls 2014-01-17 09:09:55 -07:00
e4c6aab4ef updated the API 2014-01-17 09:02:00 -07:00
b36a6590e8 Stopped overriding the ping method provided by the 1.0 API, but it didn't match the "castExists" regex so...
Fixed the lack of castExists for ping/1.0 by removing castExists all together from the API. It was the
case anyway that all HEAD requests needed to be cast, so now the clientAction module will set that
param when the spec is set to make HEAD requests. The transport.request still expects that parameter.

Switched the apiVersion implementation to use funcEnum, and exposed the options on the Client constructor.
Docs to come.
2014-01-16 15:43:33 -07:00
eda56aa5d0 temporarily linking to general info for the cat api until aliases specific docs are written 2014-01-16 12:24:08 -07:00
980163dfb2 switched submodule back to elasticsearch/elasticsearch, updated the generator to properly pull updates from the related branch 2014-01-16 11:58:35 -07:00
34f3d3ce28 fixed generate script 2014-01-16 10:17:13 -07:00
9f7c5bb968 updated docs to include 0.90 API 2014-01-15 17:38:46 -07:00
55df195eaa updated docs to include 0.90 API 2014-01-15 17:02:30 -07:00
3d2b395c6f updated docs to include 0.90 API 2014-01-15 16:55:37 -07:00
18e134d0a6 Summary of Changes:
- moved es install/start/stop logic into a seperate script
  - `grunt test` now runs the integration tests once for each version of ES we support
  - grunt can now install and run elasticearch (using grunt-run, pure js solution coming later)
  - included seperate es.sh script specifically for starting or stopping elasticsearch
  - url aliases, api, yaml_suite/index.js, and yaml_tests.json, are all now duplicated for 0_90 support
  - the client now accepts an apiVersion argument (undocumented) which defaults to 'master' but can be '0.90'
  - The yaml test runner will now check the name of the ES instance it is connecting to, preventing accidental wiping of ES
2014-01-14 23:10:12 -07:00
37ce4e440c Merge remote-tracking branch 'upstream/master' into browser_tests_for_travis 2014-01-14 17:20:57 -07:00
6fecb08a40 updated ES reference, pulled in latest API changes, integration test runner now clears the previous tracer log when it is in use. 2014-01-14 16:31:35 -07:00
3223fb4a6d added browser tests, modified ci script, removed testing for version 0.90.x 2014-01-10 11:23:08 -07:00
f6de504c3f added a check to the js_api generator that will ensure that each url has a unique variable signature. 2014-01-09 16:17:19 -07:00
a7c2417f0d - using ping to detect when ES is ready rather than sleep
- reusing es downloads to make local testing faster
- periodic checks will kill the script on failure
- coveralls report is only sent once per build
- failures sending the coveralls report won't cause the build to fail
2014-01-07 17:24:36 -07:00
d1e04c57fb Updated testing to pull yaml tests from a specific es branch, and setup
travis script that will download the latest build from a branch or a release
based on the config it receives.
2014-01-07 14:34:37 -07:00
bbbfcfa33e Updated ES, brought a few modification to the API along with it. Yaml test suite is now built against a specific version of elasticsearch when you specify the es_branch arg
to `grunt test`
2014-01-07 10:00:07 -07:00
71a0b8f58e updated integration suite to pull rest-api-spec from elasticsearch repo 2014-01-02 11:33:59 -07:00
6c2330fd8a Added a few examples and a link to the readme, set an ID for the api reference page. 2013-12-28 08:49:50 -07:00
65f9cc7e99 added docs to the repo 2013-12-27 16:41:38 -07:00
f5c8d39876 hotfix for recursive failures in the jQuery build. v1.0.2 2013-12-19 20:55:34 -07:00
37cd2f4f6c Summary of changes:
- updated copyright
 - several tempalate changes for the docs
 - added a config for grunt-contrib-watch
 - updated nock commit number
 - fixed the coverage script
 - removed the export_docs script
 - added error message for legacy "es" users who don't have a version locked and have not upgraded
 - host will now add auth to urls created with `#makeUrl()`
 - Log class no longer looks for `config.loggers`
 - The log class now properly escapes single quotes in trace logs
 - Removed compiled yaml_tests.js from the repo
 - Yaml suite will only log error and warning messages unless the VERBOSE env var is set
 - createDefer is now a global setting, changed by modifying Transport.createDefer fubction
 - wrote tests for Content-Type checking
 - callbacks will now return the body and status of the request (if the request has completed) when an error occurs
 - Stdio logger now adds "Elasticsearch " to the front of log messages to distinguish it from other output to stdout.
2013-12-15 14:12:39 -07:00
22c675e250 improved the format of the docs a bit and fixed the generator 2013-12-12 21:43:47 -07:00
afaab8a3fd fixed the way the submodule is updated 2013-12-12 20:32:04 -07:00
5068914294 added the examples to the generated doc files 2013-12-12 20:31:09 -07:00
dea18fcd7d improved stream mocks for older versions and increased compatabity from 0.8 up 2013-12-12 20:07:31 -07:00
345ac776ef Major updates for testing and grunt, jenkins tests are now powered by the jenkins.sh script in the scripts directory. 2013-12-12 15:39:42 -07:00
270763e0a7 Added more unit tests, up to 98% coverage. Fixed the Gruntfile so it's not a cluster-f**k anymore. 2013-12-06 18:39:48 -07:00
0c7023dec6 updated the readme for the generate scripts 2013-12-04 20:16:18 -06:00
a772a4e070 added an export_all_client script 2013-12-04 20:11:24 -06:00
2b5f6cd80d lots of changes, should have committed earlier 2013-12-02 18:43:52 -07:00
477f1aff84 Fixed the integration tests, set the default method for indices.putTemplate and indices.putMapping to PUT 2013-11-25 14:14:00 -07:00
97ba084795 save point durring huge unorganized refactor 2013-11-22 16:48:30 -07:00
5bb70fbe58 Moved the curl formatting into the log and changed the arguments for the log event listeneres to
receive both the "message" and the "curlCommand".

Added a "tracer" logger which allows you to create log files that a executable scripts. Those scripts
will write all of the log messages as script comments, and not comment out the curlCommands, so that they
can trace their application and use the generated script to recreate the issue.

Most changes are simply cased by adding the "unused" rule to jshint.
2013-11-15 19:10:45 -07:00
9ff959e1e6 Modified the classnames for the test cases so that they work a bit better in Jenkins. Also adjusted the generate scripts to pull the latest commit sha from github. 2013-11-14 09:45:19 -07:00