Commit Graph

71 Commits

Author SHA1 Message Date
Daniel García Aubert
cc535b13d2 Use asert.strict mode 2019-12-26 14:23:21 +01:00
Daniel García Aubert
5a96dbb59c Run eslint --fix 2019-12-23 18:19:08 +01:00
Daniel García Aubert
06a47a8afc Changed folder structure to reflect application functionallity. Renamed files using hyphens instead of underscore to have a more consistent naming across the whole project 2019-10-03 18:24:39 +02:00
Raúl Marín
df523960a2
Fix test timeouts (#612)
* Tests: Work with re-runs

* Test: Adapt copyfrom test
- Reduce timeout from 10 to 1 ms.
- Increase the size of the file from 6 to 2016 rows.

* Use node-cartodb-psql 0.14.0

Ref: https://github.com/CartoDB/CartoDB-SQL-API/pull/612
2019-09-13 11:28:37 +02:00
Daniel García Aubert
fbc958f8e1 Materialize table creation as test setup 2019-05-16 12:17:24 +02:00
Daniel García Aubert
2e2e233b68 Use 'bunyan' logger instead of 'debug' to log debug messages 2019-04-04 14:31:41 +02:00
Simon Martín
c53ed67252 typo 2019-02-27 11:57:36 +01:00
Daniel García Aubert
a616982ec3 Use strict mode 2018-10-24 15:42:33 +02:00
Rafa de la Torre
20d1db78dc Helper to reset pgbouncer connections #521
This sends a PAUSE and RESUME to pgbouncer (in case there's one) before
and after executing tests, to make sure new connections are established
in the tests.

This may be especially important when role or session settings are
modified in the DB (same happens in prod, BTW).
2018-07-19 18:43:17 +02:00
Eneko Lakasta
cf8bf6e5e6 get DB configuration from job instead from metadata in Job Canceller 2018-05-30 17:36:55 +02:00
Eneko Lakasta
6e3eb8ef28 Fix test: add auth params to job 2018-05-30 11:48:15 +02:00
Eneko Lakasta
e85994293b remove fallback tests and refactor some http errors 403 -> 401 2018-05-17 17:13:00 +02:00
Daniel García Aubert
cf0214f5c3 Respond with 403 intead of 401 when the request has no permissions to the specific resource 2018-02-23 15:50:23 +01:00
Daniel García Aubert
3807d9f94d Template for User not found error 2018-02-22 17:49:02 +01:00
Daniel García Aubert
b0f39d16ab Remove commented code 2016-11-24 17:39:14 +01:00
Daniel García Aubert
4d97f77e14 Remove console.log 2016-11-24 17:38:54 +01:00
Daniel García Aubert
48469aaf0d Make some test less demanding 2016-11-24 16:53:15 +01:00
Daniel García Aubert
b2a6b319e4 Unskip test 2016-11-24 16:45:00 +01:00
Daniel García Aubert
99a8b794dc Dont use setInterval in work in progress test suite 2016-11-24 16:21:28 +01:00
Daniel García Aubert
9a63006719 Validate job response using the internal reference 2016-11-24 15:40:09 +01:00
Daniel García Aubert
14dabcafa2 Use batch-test-client for job timing suite 2016-11-24 14:37:03 +01:00
Daniel García Aubert
b54c9dce43 Use custom assert 2016-11-24 14:11:43 +01:00
Daniel García Aubert
a0eea98940 Implement custom assert for batch test client 2016-11-24 13:25:14 +01:00
Daniel García Aubert
04ba1279da Use test-client and batch-test-client for callback template suite 2016-11-24 13:10:29 +01:00
Daniel García Aubert
3268dcd43c Put into same file batch use cases 2016-11-23 23:48:23 +01:00
Daniel García Aubert
4b04ccc222 Remove test that its functionality is no longer supported 2016-11-23 23:42:03 +01:00
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
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
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