Commit Graph

83 Commits

Author SHA1 Message Date
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
576f26a4b9 allow id to be passed to mock elasticsearch index 2016-04-25 14:43:53 -07:00
a4bfd5184d add get method to Client, add errors to mock 2016-04-25 14:19:48 -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
b78c5763ce check in create_index module, with tests 2016-04-22 17:53:48 -07:00
7e0f45019b add job test for index creation
also make other tests properly async
2016-04-22 17:49:37 -07:00
f120d84367 add indices.exists to es client mock 2016-04-22 17:48:35 -07:00
fd1ebd3a33 clean up mock includes 2016-04-22 17:14:25 -07:00
47eaebf8c6 test for ping call on new queue 2016-04-22 17:03:23 -07:00
730ec68bfa change the job scontructor, update tests 2016-04-22 17:03:10 -07:00
3318c775c0 make tests run with mock client
tests now work without elasticsearch running
2016-04-22 16:51:35 -07:00
64945556ff rename create client, fix client instance test 2016-04-22 16:49:38 -07:00
1171c5f0f1 expand the es client fixture 2016-04-22 16:49:19 -07:00
0b12fde877 custom clock, no proxyquire needed 2016-04-22 13:40:03 -07:00
549095dfff update interval module, add tests 2016-04-22 13:38:12 -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
b2ff6bc291 add test for unique worker id 2016-04-18 17:44:39 -07:00
3d89a3e86c beef up the job document's body, update tests 2016-04-18 17:44:18 -07:00
9d07023453 start adding tests for the worker 2016-04-18 16:39:48 -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
822019f12a change test structure, create elasticsearch fixture 2016-04-15 16:51:38 -07:00
600f2eb529 make index the first param 2016-04-15 16:05:43 -07:00
facf8d89e3 add create_client tests 2016-04-14 17:45:32 -07:00
981bf09aab remove Joi validation, add createClient, update tests 2016-04-14 16:57:28 -07:00
5619612943 update constructor, add option validation tests 2016-04-14 15:04:49 -07:00
252f72a948 inital boilerplate checkin 2016-04-13 17:09:08 -07:00