Commit Graph

39 Commits

Author SHA1 Message Date
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
2a2e4b9bee moved the API info from README.md into api.md, and added a check for methods that have no params.
[ci skip]
2013-11-12 10:13:45 -07:00
671280a0a6 added api.md generation [ci skip] 2013-11-11 16:54:23 -07:00
7912ae63af added test runner for jenkins 2013-11-11 13:14:19 -07:00
ca29fbe6e3 added some compatability stuff for 0.8. Dropping support for 0.6 which seems really old anyway 2013-11-05 12:19:41 -07:00
7e6fa479ad Added the browser based test suite, have it running automatically via PhantomJS with grunt, all tests are passing except one, which requires PhantomJS send a body with a DELETE request 2013-11-05 10:01:12 -07:00
286a08c8c2 Added browser build, including angular version. minified versions available 2013-10-29 19:47:00 -07:00
984a55f6c0 Cleaned up the generation script, fixing the doc-blocks above the client actions.
Replaced the transport, giving it all of the functionality that was brought over to the client and making the client simply a place for the API to live. Essentially a shell that can easily be removed.

spec'd out the TransportRequest which will eventually inherit from one of server possible promise implementations and will be plugable. It will also implement the "abort" functionality needed in an environment like node.js
2013-10-29 08:48:29 -07:00
cc1509cef3 removed old dependency on the q lib 2013-10-24 10:41:04 -07:00
d678cfc667 fixed a few jshint errors 2013-10-24 09:00:47 -07:00
e231876702 Switched from downloading zips to downloading tarballs, as the unzip module was randomly sucking. 2013-10-23 21:54:36 -07:00
63d0d04796 added README to the js_api generator 2013-10-23 16:12:29 -07:00
20462c73fd Slight refactor to the api module, so it will simply extend the client like it did previously, and
also exposes itself on the module.exports so that is can be referenced externally.

Added "grunt run" task which currently has a single config, generate_js_api.

Removed the api spec submodule, generator just downloads master when it runs.
2013-10-23 16:07:56 -07:00
c14d37aa42 Slight refactor to the api module, so it will simply extend the client like it did 2013-10-23 14:49:00 -07:00
01763c2c39 Refactored the API, moving it into a single api.js file which can be
exluded from a build if desired.
2013-10-23 06:24:02 -07:00
b063dfdca7 Added "extends" key to the jshint config files, so there is less repetition.
Mocha now runs from grunt, just run "grunt"

Copied es-php's README.md, will modify later

More logging around sending a request, including stack traces for debug messages

Connections now manage their own state, and emit a "status changed" event which
the connection pool listens for

Fixed the custom errors

Stream loggers will dump their buffered output to stderr when the process exits
so that log messages will be sort of saved, File logger overrides this and
writes to the file syncronously

Added _.handler(), _.scheduled(), and _.makeBoundMethods() to the utils
2013-10-21 10:09:12 -07:00
8cc87637e2 modified the config to own the connectionPool, transport, and a few other objects 2013-10-18 09:40:55 -07:00
0f9fa9c17c added readme to log generator 2013-10-16 15:36:54 -07:00
46aeac57e4 yaml tests passing using a personl instance of ES, working on specifying the host/port 2013-10-16 15:13:47 -07:00