Commit Graph

29 Commits

Author SHA1 Message Date
410979cff1 fixed browser_clients:* grunt tasks, and added build step to CONTRIBUTING.md 2014-01-15 13:18:19 -07:00
a80e6aba4f fixed some doc issues, and reorganized the browser tests. Rather than running one per build, now a unit test page is run, and a build test page is run 2014-01-15 13:09:46 -07:00
37e35025a0 updated docs to include config option, details about the new testing process added to CONTRIBUTING.md, grunt-saucelabs returned to upstream 2014-01-15 12:00:25 -07:00
ac67eab8d8 Added support for jenkins to the ci script 2014-01-14 23:44:00 -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
3223fb4a6d added browser tests, modified ci script, removed testing for version 0.90.x 2014-01-10 11:23:08 -07:00
0a17848719 merged master 2014-01-08 14:22:53 -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
cb1b4b3bc1 removed 'should' dep from mochacov config 2013-12-27 16:55:47 -07:00
2723511eff added testling run to the travis build 2013-12-24 01:06:37 -07:00
2b3734a081 switched out assertion library with should.js... I really should have written my own baby util library since that was the third time I've done that... 2013-12-23 15:33:53 -07:00
3d0b2fde4e setup testling 2013-12-23 10:18:52 -07:00
d949ac940a fixed the compress config 2013-12-21 22:08:14 -07:00
63cd44d137 fixed the compress config 2013-12-21 21:57:23 -07:00
f9be330999 fixed the urls for uploading and downloading browser builds. 2013-12-21 18:09:57 -07:00
d17217929a updated the grunt tasks, and the jquery connector will now properly parse json response bodies 2013-12-21 00:36:41 -07:00
77e3dcb95b updated the task names inside the browser_clients tasks to reflect latest versions 2013-12-19 22:40:02 -07:00
50be1e86b3 Summary of Changes:
- Polished some Grunt config options while testing livereload capabilities in grunt-watch
- tests for connection_pool selection with no living connections
- tests for connection abstract's mini request implementation for ping.
2013-12-18 17:11:32 -07:00
3057c25c26 Setup grunt coverage task 2013-12-18 13:28:42 -07:00
96b44ebf8b Merging spenceralger:travis_and_coveralls. Summary of changes:
- removed several unneeded devDeps
- removed old get_spec.js script
- the client's ping method will now send back true as the body when the ping
  succceeds, and false when it does not. When the ping fails, the error will
  still be sent back and the connection's status will still be set to "dead".
- All of the client's methods now have a spec property, which will provide the
  JSON spec used to run that method.
- The yaml test runner will only camelCase param names that are documented, uses
  the client's method's new spec property
- Trace log events will now have their proper original query string parameters
- The "tracer" logger will now write to elasticsearch-tracer.log by default, and
  will truncate the file if it already exists.
- When running the integration tests, the client will now use a tracer logger which
  writes to stderr. The default level is "warning", but with the VERBOSE environment
  var it becomes "trace" and the logger will write to it's default file
- Added .idea to the .gitignore, it was being published to NPM
- Cleanup of the grunt tasks. Consilidated several tiny files into seperate moderately sized ones.
2013-12-18 13:21:40 -07:00
043bf21785 added generate task before the integration task in 'grunt test' 2013-12-17 20:11:05 -07:00
0d19207205 updating doc links to point to the new main gh-pages site 2013-12-17 11:57:31 -07:00
cf3be01c57 - grunt watch will now abort mid task
- connection's ping method now accepts requestTimeout, path, and method params like
  all the grown-up API calls
- ConnectionPool now managed connection timeouts. When a connection dies a
  timeout object is created to track when the timeout is scheduled and the function
  to call when it does. It also tracks how many times it has run to allow the timeout
  to grow
- Timeouts now grow with use of `config.calcDeadTimeout` which is set to 'exponential'
  by default, but can also be set to flat in order to always use the standard
  deadTimeout. Exponential growth of the deadTimeout is stopped at config.maxDeadTimeout
  which is set to 30 minutes by default.
- Connections no longer have a resuscitate method (too hard to spell). Now the
  method is created dynamically as a part of the timeout object as it just calls
  the connection's ping method and needed to access variables like revive attempts.
- Timeouts were moved to the transport layer, meaning that you need to capture the
  abort method and abort the request yourself if you are handling connections
  directly, ConnectionsAbstract's ping method does this.
2013-12-16 02:35:28 -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
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