Daniel García Aubert
4c3b56c529
Use batch test client for use case 8
2016-11-23 23:39:15 +01:00
Daniel García Aubert
c459303748
Use batch test client for use case 7
2016-11-23 23:33:30 +01:00
Daniel García Aubert
f89fb0e683
Remove test that its functionality is no longer supported
2016-11-23 23:30:01 +01:00
Daniel García Aubert
0176db54ac
Use batch test client for use case 3
2016-11-23 23:23:34 +01:00
Daniel García Aubert
7be92d02d5
Use batch test client for use case 2
2016-11-23 23:23:24 +01:00
Daniel García Aubert
0e56942507
Use batch test client for use case 1
2016-11-23 23:23:14 +01:00
Daniel García Aubert
b76120c41b
Use test bacth client
2016-11-23 20:47:18 +01:00
Daniel García Aubert
e29b35a98d
Assert if error
2016-11-23 20:09:38 +01:00
Daniel García Aubert
e6bc22ee5d
Fix jshint typo
2016-11-23 19:29:03 +01:00
Daniel García Aubert
86e9a3f122
Use batch client test for fallback suit test
2016-11-23 19:22:24 +01:00
Daniel García Aubert
bbe80f0810
Remove useless bacth service
2016-11-22 14:09:16 +01:00
Daniel García Aubert
687e6218b4
Make polling to check work-in-progress job
2016-11-22 14:06:32 +01:00
Daniel García Aubert
80798e2231
Skip test that use queue with assert.response
2016-11-22 12:52:26 +01:00
Daniel García Aubert
549d7dcdf7
Remove skip
2016-11-22 11:37:35 +01:00
Daniel García Aubert
eb67994ba8
skip state dependant test
2016-11-21 18:17:22 +01:00
Daniel García Aubert
670633655e
skip state dependant test
2016-11-21 17:44:27 +01:00
Daniel García Aubert
dba3fd24ec
skip state dependant test
2016-11-21 17:27:57 +01:00
Daniel García Aubert
7faa78c3f4
skip state dependant test
2016-11-21 15:31:43 +01:00
Daniel García Aubert
802c93dcee
Moved work in progress test
2016-11-02 13:03:22 +01:00
Daniel García Aubert
bd716867fa
Revert last env test changes
2016-11-02 13:02:29 +01:00
Daniel García Aubert
041b69a1f6
Isolate failing test in CI
2016-11-02 12:47:29 +01:00
Daniel García Aubert
e459494123
Be more accurate on query sleep times
2016-11-02 11:39:05 +01:00
Daniel García Aubert
aa1527b371
Use clear work-in-progress after finishing jobs
2016-10-28 15:58:41 +02:00
Daniel García Aubert
4a64d37c6c
Add work in progrees list endpoint
2016-10-28 15:08:42 +02:00
Raul Ochoa
16e9e709b8
Cancel with user statement_timeout limit from redis
2016-10-21 14:35:24 +02:00
Raul Ochoa
604e28533c
Fix and improve test
2016-10-19 16:58:57 +02:00
Raul Ochoa
372c9f5511
Basic test to test scheduler happy case
2016-10-19 16:57:10 +02:00
Raul Ochoa
2853c7b0a7
Fix status check
2016-10-19 10:36:27 +02:00
Raul Ochoa
1e490be0a1
Don't rely on batch.on(job:status)
2016-10-18 20:18:49 +02:00
Raul Ochoa
a29f847767
Don't rely on batch.on(job:status)
2016-10-18 20:05:57 +02:00
Raul Ochoa
a1400e956d
Don't rely on batch.on(job:status)
2016-10-18 20:01:11 +02:00
Raul Ochoa
66d1c18941
Default to 64 queued jobs as max
2016-10-17 15:23:53 +02:00
Raul Ochoa
cdde1be29e
Re-use redis pool as much as possible
2016-10-17 15:02:34 +02:00
Raul Ochoa
4dad54d004
Add test to validate query order by user
2016-10-17 12:33:49 +02:00
Raul Ochoa
b8a57460dc
Handle stop gracefully
2016-10-17 12:28:01 +02:00
Raul Ochoa
cb23b7f46c
Make test finish quicker
2016-10-17 10:52:07 +02:00
Raul Ochoa
1e442b37ab
Allow to set a max number of queued jobs per user
2016-10-12 22:40:35 +02:00
Raul Ochoa
e4b1711e8e
pub/sub package
2016-10-11 18:28:46 +02:00
Raul Ochoa
f036e29b8f
Make test stable
2016-10-10 19:47:18 +02:00
Raul Ochoa
41d7823227
Drop table if exists
2016-10-10 19:46:53 +02:00
Raul Ochoa
a0ace8d034
Use name in test
2016-10-10 19:46:39 +02:00
Raul Ochoa
f4950f73c0
Add test to validate multiple consumers query order scenario
2016-10-10 15:56:04 +02:00
Raul Ochoa
46579093dd
Fix test scenario description
2016-10-10 15:37:19 +02:00
Raul Ochoa
8ac656492f
Move to support directory
2016-10-10 15:22:50 +02:00
Raul Ochoa
faa02a79b9
Test for 578c43b1a8
2016-10-10 15:17:05 +02:00
Raul Ochoa
8a4f54bb87
Allow users to set max statement_timeout for their queries
2016-10-10 12:01:36 +02:00
Raul Ochoa
2ac39b5748
Move all batch tests to their own directory
2016-10-06 11:53:56 +02:00
Raul Ochoa
b07e2d3de5
Merge pull request #346 from CartoDB/fix-batch-api-test
...
Removed duplicated config
2016-10-04 13:01:46 +02:00
Raul Ochoa
0e03bcd1d3
Delete table so suite ends clear
2016-09-26 18:28:15 +02:00
Raul Ochoa
96fc32b24a
Concurrency test with assert.response
2016-09-26 18:10:09 +02:00
Raul Ochoa
1a20ca0bc3
Use listener for test
2016-09-26 18:09:50 +02:00
Raul Ochoa
abc2f130c9
Migrate to express 4.x series
...
- Remove express logger
- Error handler responds with application/[json|javascript]
- Fix all tests relying on res.headers
- assert.response based on request module
2016-09-26 18:09:27 +02:00
Raul Ochoa
a4aba62e9c
Fix name clash for err vars
2016-09-26 14:51:41 +02:00
Raul Ochoa
90e4600a6c
Rename vars to avoid name clash
2016-09-26 14:42:50 +02:00
Raul Ochoa
3dce6af20f
Remove unused param
2016-09-26 14:42:35 +02:00
Raul Ochoa
9bd240ef6c
Remove unused params
2016-09-26 14:42:24 +02:00
Raul Ochoa
26400342f3
Remove unused param
2016-09-26 14:42:14 +02:00
Raul Ochoa
c47dde1a29
Short hand method
2016-09-26 14:42:02 +02:00
Raul Ochoa
c9846a2437
Change callback signature in assert.response
2016-09-26 14:37:40 +02:00
Raul Ochoa
0d54604428
Remove setMaxListeners from tests
2016-09-14 21:24:22 +02:00
Raul Ochoa
f92d50cccf
Rename from app to server
...
Removes app_root dependency in requires
2016-09-14 20:54:53 +02:00
Raul Ochoa
20edddc721
Remove user indexer dependency from tests
2016-08-30 19:06:59 +02:00
Raul Ochoa
ba0f2f1066
Remove endpoint to retrieve jobs list
2016-08-30 18:49:01 +02:00
Raul Ochoa
ad0d101bfd
Remove patch/put endpoints for jobs
2016-08-30 17:43:34 +02:00
Daniel García Aubert
085abb3446
Removed duplicated config
2016-08-01 11:48:11 +02:00
Daniel García Aubert
f3f45bb4e2
Fixed lint issues
2016-07-22 17:11:21 +02:00
Daniel García Aubert
587ab6a5d9
Extratcs redis clean method for batch keys
2016-07-22 17:05:01 +02:00
Daniel García Aubert
7fd5e42213
Removed timeouts for batch tests and skipped again a failing one in job callback template
2016-07-22 14:41:26 +02:00
Daniel García Aubert
2e8382eeff
Fixed issues in batch tests:
...
- Wait for batch is ready before testing it
- Remove batch keys in redis after testing every suit
- Fixed issue creating jobs with same id in job service integration test
2016-07-22 14:30:55 +02:00
Daniel García Aubert
438d61fb70
Set timeout to 30s
2016-07-20 19:50:28 +02:00
Daniel García Aubert
395635d246
Merge branch 'master' into fix-publisher-connection
2016-07-11 17:49:11 +02:00
Raul Ochoa
3ebbd9f7c4
Skip tables with no updated_at registered in cdb_tablemetadata
2016-07-11 16:39:12 +02:00
Daniel García Aubert
ccff602bbf
Merge branch 'master' into fix-publisher-connection
2016-07-07 16:07:41 +02:00
Daniel García Aubert
5eaad4d5d9
Uses redis-mpool for pubsub in Batch API
2016-07-07 14:14:46 +02:00
Raul Ochoa
63d3cd59e2
Skip test for travis
2016-06-30 20:02:43 +02:00
Raul Ochoa
b4ee2effbd
Fix line too long error
2016-06-30 19:49:34 +02:00
Raul Ochoa
b9af5e7846
Create table in before
2016-06-30 19:40:36 +02:00
Raul Ochoa
8a57a64961
Output actual response when it fails
2016-06-30 19:14:21 +02:00
Raul Ochoa
1f8f5e2c57
Use another name for test table
2016-06-30 19:12:45 +02:00
Raul Ochoa
dc5807b790
Do not validate expected output
2016-06-30 18:55:19 +02:00
Raul Ochoa
74964bc696
Be more clear about what is not matching
2016-06-30 18:31:58 +02:00
Raul Ochoa
51747879d6
Reorder tests
2016-06-30 18:16:52 +02:00
Raul Ochoa
be0f059f01
Add <%= job_id %>
template support for onerror and onsuccess fallback queries
2016-06-30 17:41:02 +02:00
Daniel García Aubert
a1f31df92e
Now Batch API broadcast to other APIs everytime that re-enqueues a multiple-query job
2016-06-29 18:29:53 +02:00
Raul Ochoa
85fa9d3c2b
Merge branch 'master' into batch-onerror-template
...
Conflicts:
NEWS.md
2016-06-29 16:25:05 +02:00
Raul Ochoa
a3117a2f01
Add <%= error_message %>
template support for onerror fallback queries
2016-06-29 14:22:23 +02:00
Raul Ochoa
1d8f5539a7
Adds start and end time for batch queries with fallback
2016-06-29 13:56:45 +02:00
Daniel García Aubert
2a2127f4e1
Improved falback job to get the status of last finished query
2016-06-02 18:20:53 +02:00
Daniel García Aubert
481a82500b
Refactored fallback jobs
2016-06-01 10:39:01 +02:00
Daniel García Aubert
1a0e2b681b
Fixes #309 , added skipped status to fallback-jobs
2016-05-26 17:37:37 +02:00
Daniel García Aubert
e079491a7e
Fixed issue with status transition fallback jobs
2016-05-25 17:00:27 +02:00
Raul Ochoa
23228b2d73
Payload size validates multiple queries and fallback queries
...
It uses a middleware to check the body size
2016-05-24 14:28:00 +02:00
Daniel García Aubert
2d86fc2ce3
In fallback jobs, used fallback_status property instead of an array of statuses
2016-05-23 15:05:14 +02:00
Daniel García Aubert
052cb0796d
Modified fallback tests in order to use our custom assert.response
2016-05-20 14:42:53 +02:00
Daniel García Aubert
e04787a070
Fixed missing failed_reason
in failing jobs
2016-05-19 17:02:48 +02:00
Daniel García Aubert
cf7dff4696
Removed commented code
2016-05-19 14:13:54 +02:00
Daniel García Aubert
62c8a9d315
Refactor and fixed issue, when cancelling a fallback job, it is not cancelled properly
2016-05-19 14:10:18 +02:00
Daniel García Aubert
5c4ced34e6
Added acceptance test for job cancelling
2016-05-18 13:25:08 +02:00
Daniel García Aubert
b94a9c7c0a
Fixed conflicts
2016-05-18 11:48:39 +02:00
Daniel
8c8da8e39c
Merge pull request #301 from CartoDB/job-model-refactor
...
Job model refactor
2016-05-18 11:38:41 +02:00