Commit Graph

172 Commits

Author SHA1 Message Date
6de9243fda added tests for #25 2014-01-14 10:48:07 -07:00
3223fb4a6d added browser tests, modified ci script, removed testing for version 0.90.x 2014-01-10 11:23:08 -07:00
3490479eee changes to the testing, incorporating browser_testing 2014-01-09 16:23:02 -07:00
9df9b30aa4 merged lastest changes from master 2014-01-09 16:20:13 -07:00
24906a2c78 after running the file logger tests, get rid of the test.log file. 2014-01-09 15:58:58 -07:00
0a17848719 merged master 2014-01-08 14:22:53 -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
2aa665c3bc added angular to the scripts, which is sweet\! 2013-12-24 00:52:26 -07:00
6631b19f93 JSON.serialize was still stubbed when testling tries to phone-home about the test result 2013-12-24 00:25:37 -07:00
da80d94bcf fixed a couple test that aimed at 0.8 2013-12-23 18:08:18 -07:00
74612864e2 updated the rest-spec, and fixed an error in the integration tests after switching to expect 2013-12-23 18:00:00 -07:00
a77b2be1f2 still working to get the tests running in ie... stupid IE 2013-12-23 17:31: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
e4f81d6550 updated tests for new promise resolution value 2013-12-22 11:55:36 -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
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
74d3183cc6 Changed the createDefer config param to just be defer 2013-12-17 11:23:16 -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
a42cd776a5 more modifications in the name of cleaner Jenkins results 2013-12-15 14:55:21 -07:00
fed7d1b0cb Updated the classnames output by the jenkins reporter to have nicer test results 2013-12-15 14:32:21 -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
aa831043e8 rasing the test timeout to something that will hopefully cause less false errors 2013-12-12 20:32:52 -07:00
abecfaf9a4 removing json version of the yaml_suite from the repo 2013-12-12 20:27:55 -07:00
dea18fcd7d improved stream mocks for older versions and increased compatabity from 0.8 up 2013-12-12 20:07:31 -07:00
c5440792d3 modifications to the jenkins script to work better with bash, fixed the commit number of the nock dep 2013-12-12 16:05:41 -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
b43621322b more tests, now with 91% coverage! 2013-12-04 17:02:34 -06:00
c070c9e741 more tests, simplified the standard tests for the loggers 2013-12-04 14:55:14 -06:00
4e5f08a29c many tests 2013-12-03 19:01:04 -07: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
8baa3d6601 more tests, added contributing.md and license.md 2013-11-25 12:01:48 -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
20804bb5ab moved the transport request back into the transport, added when.js promises 2013-11-14 14:30:24 -07:00
5f9c2acde3 more pretty test results 2013-11-14 10:18:45 -07:00
e831b01dab Jenkins only breaks the classname on the last period, using browser as the top level, then the full test filename, then the test names as the levels 2013-11-14 09:51:02 -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
39a3611849 updated the browser tests to write the name of the browser in their log file 2013-11-13 17:36:48 -07:00
5e7e437162 added initial suite value for the root suite in the mocha_reporter, in case a hook fails before the first suite is loaded
test/mocha_multi_reporter.js
2013-11-13 16:41:17 -07:00
86b024b167 used actial badges 2013-11-13 15:59:04 -07:00
d7aa884477 removed window.close() call from browser, as it's causeing firefox to crash and behave strangely on the next run 2013-11-13 14:58:53 -07:00
5106577312 updated browser configs so opening browsers on all platforms should be a bit better supported, added a ping that notifies the server when the tests started, fixed a 'globalLeak', removed the test-output from the repo 2013-11-13 12:57:41 -07:00
77a73d22c2 polished up the build tasks a bit, splitting the default task into three logical groups and properly requireing the tasks that are required by others 2013-11-11 17:25:08 -07:00
7ad81390f6 updated dep list, added versions, and checked that the tests run well against the latest 1.0 beta and 0.90 2013-11-11 14:47:47 -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