Commit Graph

246 Commits

Author SHA1 Message Date
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
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
cb35524096 readding the files that I deleted in the last commit 2013-10-24 11:55:28 -07:00
fdbed8620a removing stupid dual case files that are showing up twice in GitHub 2013-10-24 11:50:54 -07:00
b139314abf fixed some case-related issues 2013-10-24 11:43:09 -07:00
6ae5c30b2e prevented undefined from getting passed to path.join in the yaml test runner 2013-10-24 10:47:21 -07:00
cc1509cef3 removed old dependency on the q lib 2013-10-24 10:41:04 -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
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
35209ea61a Manually merged the two jshintrc files until issue 1314 in jshint is merged. 2013-10-23 09:01:47 -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
4703655048 tests running again, integration log ignored 2013-10-16 15:25:18 -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
9e608226e1 All tests are passing. Removed the HTML docs 2013-10-03 10:05:58 -07:00
462444c20b got the tests running using chai and mocha, I like this a lot more 2013-09-27 16:06:45 -07:00
e21fb21ee3 testing and clients are 'online' and working know to get the tests running againts an actual ES node 2013-09-27 12:46:45 -07:00
0ac81e1989 removing mocha, switch to nodeunit 2013-09-17 09:01:35 -07:00
a305581d9c save-point 2013-09-16 13:45:17 -07:00
c3b2f0da73 Initial commit 2013-06-21 15:30:43 -07:00