Commit Graph

39 Commits

Author SHA1 Message Date
c6c73f6dd2 fix code and tests, use custom errors 2017-02-28 15:52:41 -07:00
b2f4ae857f test that the running state prevents searches 2016-12-16 16:53:22 -07:00
Court Ewing
7af0c82080 Use excludes instead of exclude in ES _source query
As of ES 5.0, you must use the plural name.
2016-09-14 12:24:11 -04:00
775442f284 update worker failure tests
check for timeouts, rejections and thrown errors explicitely, and make the tests a little more focused
2016-07-12 11:15:43 -07:00
c758fb55a6 rename the worker timeout error 2016-07-11 15:48:31 -07:00
8cd2fde3a8 add test for worker failure event 2016-07-11 15:48:08 -07:00
c6986e3677 move constants to lib root 2016-07-11 15:48:04 -07:00
27390fef44 put job info under job property on success emitter 2016-07-11 10:27:08 -07:00
5ed3280a18 test events triggered on queue, use mock queue 2016-07-08 18:35:36 -07:00
057bd26b74 emit on worker completion
with test
2016-07-08 18:00:04 -07:00
362469f541 error emitters should return more than just the error
update tests, and properly catch error conditions in worker event tests
2016-07-08 18:00:04 -07:00
a2391a30c5 update event handlers in tests
use constants values for listeners
2016-07-08 18:00:04 -07:00
eba6748ba9 add tests for various failure types 2016-06-28 18:03:15 -07:00
257645f11c add tests for worker timeout handling 2016-06-28 18:03:06 -07:00
eae6942ec2 add tests for true/false and emits on errors 2016-06-27 14:14:23 -07:00
5fe4e644d6 add custom client test 2016-06-06 14:58:54 -07:00
39315dddd0 add internal properties test 2016-06-06 14:58:48 -07:00
89c08068dd use filter instead of must in query
faster, and the score does not matter here
2016-05-17 13:37:22 -07:00
be1eb81059 make the mock client get method async
and update worker tests to use async value
2016-05-16 15:03:20 -07:00
9aa8eed297 filter output when searching for jobs 2016-05-16 14:09:24 -07:00
300449bfb0 add test for missing index result 2016-05-13 14:59:05 -07:00
dae14e0edc add tests for job search failures 2016-05-13 14:36:19 -07:00
234b829adf add more tests around job query 2016-05-12 15:09:53 -07:00
48f34a8bc8 update tests with sync or promise workers 2016-05-04 11:42:06 -07:00
9ef3fb8cec proper async promise tests, add tests for worker timeouts
also fix intermittent issue with complete_at time check
2016-05-03 11:38:17 -07:00
f722bbf5e1 only use fake clocks in tests were required 2016-05-03 11:36:55 -07:00
552abb7ddd add tests for the output formatting 2016-05-03 09:58:39 -07:00
d582989e35 simplify job error tests 2016-05-03 09:48:15 -07:00
60d486b804 add check for failed status and complete time 2016-05-02 14:31:14 -07:00
a143092e64 add completed time and status to failed jobs
with tests
2016-05-02 12:59:23 -07:00
b12aa87ad3 add completed_at time, add update tests 2016-05-02 12:57:11 -07:00
7191a2bed0 add tests for handling job failures 2016-05-02 12:45:46 -07:00
f35756f70b initial perform job tests 2016-04-29 17:57:14 -07:00
72389b65b2 add checks for version conflicts 2016-04-29 17:25:44 -07:00
d00d12683b add fail job tests 2016-04-29 17:15:39 -07:00
a0970f8ba7 add more worker tests 2016-04-29 16:44:46 -07:00
482ea68692 add mock client to worker tests 2016-04-25 16:32:58 -07:00
b2ff6bc291 add test for unique worker id 2016-04-18 17:44:39 -07:00
9d07023453 start adding tests for the worker 2016-04-18 16:39:48 -07:00