Commit Graph

23 Commits

Author SHA1 Message Date
9e3515ebd5 restructure the jobs tests 2016-06-06 17:12:09 -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
4472e725fa add tests for optional fields to get and toJSON methods 2016-05-16 15:04:35 -07:00
8d21dc6967 add optional created_by record to the doc 2016-05-16 15:02:34 -07:00
609e81fdef distiguish the doctype from the jobtype
update tests and mock elasticsearch client
2016-05-12 12:20:49 -07:00
fa784393e5 add test for process_expiration value 2016-05-11 11:04:23 -07:00
5c4340adfc start on the worker logic 2016-04-25 16:28:30 -07:00
662d8a177c assign job ids internally, update tests
useful for making toJSON fully sync and work without the elasticsearch document
2016-04-25 15:28:12 -07:00
58a0cf328f update toJSON, add tests, remove unused var 2016-04-25 15:16:00 -07:00
4d5b08c3c7 add test for get method 2016-04-25 14:44:19 -07:00
7624127ca3 add tests for priority bounds and default 2016-04-25 11:06:27 -07:00
d9e19bccf8 new jobs take options again, update schema to match index, add max_attempts, update tests 2016-04-25 11:01:46 -07:00
7e0f45019b add job test for index creation
also make other tests properly async
2016-04-22 17:49:37 -07:00
fd1ebd3a33 clean up mock includes 2016-04-22 17:14:25 -07:00
730ec68bfa change the job scontructor, update tests 2016-04-22 17:03:10 -07:00
df8bd2123b remove job options passing 2016-04-19 14:58:02 -07:00
e88695a989 add constants file, update jobs and test 2016-04-18 17:57:17 -07:00
3d89a3e86c beef up the job document's body, update tests 2016-04-18 17:44:18 -07:00
22d9ffcefe better elasticsearch client fixture 2016-04-18 16:34:03 -07:00
5ce288fd72 ensure objects are event emitters 2016-04-15 17:29:40 -07:00
9f495c7791 add job object, and tests 2016-04-15 16:51:56 -07:00