108 Commits

Author SHA1 Message Date
c6c73f6dd2 fix code and tests, use custom errors 2017-02-28 15:52:41 -07:00
9cff4e4b04 replace typed errors with custom errors 2017-02-28 15:52:40 -07:00
64c1c90337 add plain object check and omit helpers 2017-02-28 14:45:43 -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
a5bfb96855 add dateSeparator validation test 2016-08-22 11:24:59 -07:00
faeb705dee add date separator constant, update tests 2016-08-22 11:11:38 -07:00
2693c40423 add tests for custom date separator 2016-08-22 11:03:06 -07:00
597052dc4e add test for passing headers on job creation 2016-07-21 14:39:07 -07:00
b916d1352a rename client creation module 2016-07-21 14:31:15 -07:00
9d20095ffb add a test for index refreshing 2016-07-19 12:59:24 -07:00
67381108d7 add indices.refresh method to mock client 2016-07-19 12:51:34 -07:00
fd118fa746 add test for passing params to workers 2016-07-12 13:31:40 -07:00
f8db6e1bd3 add queue tests for job creation 2016-07-12 13:31:25 -07: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
bfe8799b90 add job creation error
use it on creation error, update tests
2016-07-11 16:03:59 -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
288daecb6b Job - add emit on Queue instance test 2016-07-11 15:48:08 -07:00
bdd94096db update Job tests, use mockQueue 2016-07-11 15:48:08 -07:00
a50dbf752e add success and failure event tests for jobs 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
79358a76dd create a mock queue 2016-07-08 18:34:58 -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
b99f5ff1b9 don't pass headers through to jobs 2016-07-08 18:00:02 -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
a5f1d77f23 remove unused var in test 2016-06-27 14:45:31 -07:00
866f5948af 100 percent coverage on create_index helper 2016-06-27 14:23:49 -07:00
eae6942ec2 add tests for true/false and emits on errors 2016-06-27 14:14:23 -07:00
eeafaf7d42 add test for assign headers 2016-06-06 17:22:36 -07:00
9e3515ebd5 restructure the jobs tests 2016-06-06 17:12:09 -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
e0605796a1 fix inconcistent constants use 2016-06-06 14:50:06 -07:00
a1a7b9e213 add tests for passing client on job create
also fix issue where the wrong client was being used to create the index
2016-06-06 14:48:01 -07:00
9ab3bb048e update tests and fixture 2016-05-19 14:12:01 -07:00
59d30bbb0f remove console debugging 2016-05-19 14:10:03 -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
4472e725fa add tests for optional fields to get and toJSON methods 2016-05-16 15:04:35 -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
8d21dc6967 add optional created_by record to the doc 2016-05-16 15:02:34 -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