Commit Graph

739 Commits

Author SHA1 Message Date
Simon Martín
d727a50407 jshint 2018-03-28 12:17:42 +02:00
Simon Martín
152ef05028 removing forgotten only 2018-03-28 12:15:23 +02:00
Simon Martín
8e5ac72411 simplify error_handler tests 2018-03-28 12:10:48 +02:00
Simon Martín
cdeb8b8e63 make EnekoLinter happy xD 2018-03-27 15:49:38 +02:00
Simon Martín
1f5e00e656 bad merge 2018-03-27 15:46:58 +02:00
Simon Martín
b75334f1e7 Merge branch 'master' into limits-error-refactor 2018-03-27 15:32:24 +02:00
Simon Martín
4f4ec1856a Merge branch 'master' into finalDetails 2018-03-27 14:56:04 +02:00
Simon Martín
84af567577 run with local files insterad of download and by OS 2018-03-27 12:23:29 +02:00
Simon Martín
bb929bf3dc adding rediscell files for linux and mac 2018-03-27 12:14:28 +02:00
Simon Martín
483c263f61 adding and testing limits error response with params 2018-03-26 19:10:23 +02:00
Simon Martín
54876fa203 addind properties to limits errors 2018-03-26 15:56:50 +02:00
Simon Martín
26baaf6081 removing retry after when no necessary 2018-03-23 15:09:16 +01:00
Simon Martín
d3959bd024 change redis cell file path 2018-03-15 12:10:23 +01:00
Simon Martín
a5ddb83b36 using curl instead of wget 2018-03-15 11:54:02 +01:00
Simon Martín
62414ec34e download redis-cell lib during tests 2018-03-15 11:42:13 +01:00
Simon Martín
581bd0dd89 Merge branch 'master' into rateLimits 2018-03-14 12:47:45 +01:00
Simon Martín
1ffeb456e8 Headers following rfc6648 2018-03-14 12:17:26 +01:00
Simon Martín
4ca34cad95 removing logs 2018-03-13 12:01:51 +01:00
Eneko Lakasta
2ec767c1fc Set Vary Header to honor Authorization header when caching (fastly) 2018-03-13 11:59:07 +01:00
Simon Martín
4c7afd4aeb installing libc6 2018-03-13 09:54:32 +01:00
Simon Martín
41db3050a7 removing precompiling rediscell, compiling on the fly 2018-03-12 20:30:54 +01:00
Simon Martín
a85aefb80c show error log 2018-03-12 19:56:55 +01:00
Simon Martín
121d96a824 list directory 2018-03-12 19:48:37 +01:00
Simon Martín
24465270b9 redis info before run 2018-03-12 19:38:55 +01:00
Simon Martín
5c97777c4a redis-cell path 2018-03-12 11:22:56 +01:00
Simon Martín
cdfeee7247 redis-cell compiled on the fly and saved to tmp folder 2018-03-05 18:23:23 +01:00
Simon Martín
488ceac73d check current path 2018-03-05 16:17:49 +01:00
Simon Martín
250df81265 removing unused var 2018-03-05 16:17:04 +01:00
Simon Martín
32f35e9d45 redis-cell path 2018-03-05 16:01:27 +01:00
Simon Martín
35ffa06b74 using cartodb-redis in rate limit tests 2018-03-03 15:02:08 +01:00
Simon Martín
755cc6cf4a adding new version of cartodb-redis 2018-03-03 15:01:27 +01:00
Simon Martín
e613708752 changing redis-cell library path reference 2018-03-02 21:00:38 +01:00
Simon Martín
5ae9eaa781 change assertRequest function name 2018-03-02 20:16:58 +01:00
Simon Martín
83c5b81d4e refactoring rate limit test 2018-03-02 20:14:10 +01:00
Simon Martín
060a43d10d removing done from synchronous tests 2018-03-02 20:02:17 +01:00
Simon Martín
4161f9fe84 previous comment 2018-03-02 16:43:01 +01:00
Simon Martín
86bfa8228f adding rate limit tests 2018-03-02 13:18:19 +01:00
Simon Martín
41875c6281 fix path of redis-cell on tests 2018-03-02 13:16:04 +01:00
Daniel García Aubert
418ec1304f Fix issue with auth fallback, it wasn't authenticated when apikey master was provided 2018-02-26 18:13:49 +01: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
28a7cf9259 Don't authenticate when default_public api-key is provided 2018-02-21 11:14:31 +01:00
Daniel García Aubert
75c2d85dbb Use authenticated middleware in query controller 2018-02-19 13:24:44 +01:00
Daniel García Aubert
edd382fb8f Check user is the same user that sends the request when basic-auth is provided 2018-02-16 18:21:06 +01:00
Daniel García Aubert
bcf88093e9 Support basic-auth for batch api 2018-02-16 11:52:57 +01:00
Daniel García Aubert
2cadfe6f18 Add support for Basic Auth 2018-02-16 10:46:58 +01:00
Daniel García Aubert
ad772246d0 Get api_key from specific middleware and save it into res.locals 2018-02-15 17:23:35 +01:00
Daniel García Aubert
1011ecce89 typo 2018-02-15 13:25:12 +01:00
Daniel García Aubert
b8ab580b8a missing comment 2018-02-15 13:20:19 +01:00
Daniel García Aubert
75c972a7a2 Add test to ensure that a job created with specific role can't query to restricted resources 2018-02-15 13:15:01 +01:00
Daniel García Aubert
87f80c364b Add tests to validate that a wrong apikey should use default public credentials 2018-02-15 12:36:54 +01:00
Daniel García Aubert
ea6e8b5315 Implement fallback mechanism to be able to authenticate as usual in case of apikey is not found 2018-02-14 16:22:36 +01:00
Daniel García Aubert
e0e9f1e1df Cosmetic changes 2018-02-14 12:19:02 +01:00
Daniel García Aubert
f2074ba237 Drain batch test client 2018-02-14 12:10:41 +01:00
Daniel García Aubert
974d219aad Add test for batch api 2018-02-13 19:47:00 +01:00
Daniel García Aubert
7ba95d28cc Add test to check regular api keys 2018-02-13 17:53:27 +01:00
Daniel García Aubert
88c0751f52 Fix assertion 2018-02-13 16:10:08 +01:00
Daniel García Aubert
08183bf083 Add integration test 2018-02-13 12:44:55 +01:00
Daniel García Aubert
38459c021f Merge branch 'master' into auth-api 2018-02-12 18:10:52 +01:00
Daniel García Aubert
a3188fa3b5 Update api-keys in redis 2018-02-12 16:41:00 +01:00
Daniel García Aubert
5c7f5fbaa5 Merge branch 'master' into auth-api 2018-02-12 16:30:09 +01:00
Simon Martín
c351360085 ensuring job_id on jobBackend.create and updating test 2018-02-12 10:39:58 +01:00
Simon Martín
dd07a21c98 unsubscribe on batch publisher test 2018-02-08 17:59:28 +01:00
Simon Martín
6e45c39b1f Merge branch 'master' into pythonTimeout 2018-01-08 11:29:17 +01:00
Simon Martín
47b6ae65f5 test escape chars function 2017-12-18 12:46:03 +01:00
Simon Martín
3fa09a007e line at EOF and better comment 2017-12-12 17:16:40 +01:00
Simon Martín
15428979d1 adding error header acceptance test 2017-12-01 18:11:32 +01:00
Simon Martín
43598cafe6 test ensuring errors header 2017-11-28 17:19:48 +01:00
Daniel García Aubert
88015aaf0f Implement new auth system based on api-key tokens with scoped permissions 2017-11-24 17:57:54 +01:00
Simon Martín
670cb6eb8b Merge branch 'master' into pythonTimeout 2017-11-24 16:02:13 +01:00
Simon Martín
11e0ac89d2 undo test of postgres9.5 error 2017-11-24 12:22:30 +01:00
Daniel García Aubert
d13dd9549e Implemtent first acceptance test to check auth-api happy cases 2017-11-23 17:39:28 +01:00
Simon Martín
5b3fb630fb only ensure the error message 2017-11-23 12:44:38 +01:00
Daniel García Aubert
7531df3be3 Get the right column 2017-11-17 14:46:23 +01:00
Simon Martín
63238ddd89 fix EOF line and forgotten 'only' 2017-11-17 13:17:42 +01:00
Simon Martín
501296f818 test ensuring error 2017-11-17 13:10:32 +01:00
Simon Martín
3a5c28cced py_sleep postgres function 2017-11-17 13:09:37 +01:00
Raul Marin
2211e7c0ed Test: Strip PARALLEL labels for PostgreSQL releases before 9.6 2017-11-14 16:34:16 +01:00
Daniel García Aubert
102a17c12b Fix test 2017-09-20 16:17:33 +02:00
Daniel García Aubert
b774a0ff5c Use method 'psql.end' exposed by 'cartodb-psql' instead of using the pg's one directly 2017-08-11 15:11:07 +02:00
Raul Ochoa
ec351ff580 Upgrade cartodb-psql to 0.10.0
Removes tests associated to the upgrade. SET queries are no longer
validated. Note the subtle leading space in the removed test cases.
2017-08-11 12:49:38 +02:00
Raul Ochoa
32154b67c6 Merge branch 'master' into upgrade-cartodb-psql 2017-08-11 11:57:16 +02:00
Daniel García Aubert
fd39027c6c Add TODOs 2017-08-09 18:56:51 +02:00
Daniel García Aubert
74b92bc782 Implement tests 2017-08-09 12:53:59 +02:00
Daniel García Aubert
ee9709199a Expose method to configure user's
metadata
2017-08-09 12:51:21 +02:00
Raul Ochoa
3e536b822e Remove unnecessary destroyOnError option 2017-08-08 18:21:10 +02:00
Daniel García Aubert
d7d2c73c3a Add test to check that export api handles user timeout limit 2017-08-04 17:12:49 +02:00
Daniel García Aubert
8b6ec95108 Add test to check timeout error while exporting 2017-08-03 19:15:24 +02:00
Daniel García Aubert
fb477260ec Respond with 429 and proper message when database fires a timeout error 2017-08-03 17:19:08 +02:00
Rafa de la Torre
1db935a24b Merge pull request #423 from CartoDB/422-disable-query-lru-cache
422 disable query lru cache
2017-06-27 17:40:33 +02:00
Rafa de la Torre
ae304999c7 Add a few integration tests #422 2017-06-27 16:38:07 +02:00
Rafa de la Torre
23cd744eda Skip tests that need of a real tableCache #422
Skip those tests when the tableCache is disabled, but run them
otherwise.
2017-06-27 12:58:27 +02:00
Daniel García Aubert
00cbfca72e Improve assertion 2017-06-09 16:56:44 +02:00
Daniel García Aubert
aa66000848 Going green: use replacer parameter in JSON.stringify method to not cast special number values to null 2017-06-08 12:42:37 +02:00
Daniel García Aubert
1977f4a782 Going red: special float values parsed to null 2017-06-08 12:31:18 +02:00
Mario de Frutos
3a99020632 Added regexp for the test to matches both 0.10 and 6.X node version 2017-04-18 12:15:47 +02:00
Mario de Frutos
5e9fcc5c8f Added test to check error when zip command file is not present 2017-04-18 12:15:47 +02:00
Daniel García Aubert
6dba06130b Retur a proper error message when ogr2ogr command fails 2017-04-18 11:40:37 +02:00
Raul Ochoa
ea9454d87c Add test to validate old jobs will get discovered 2017-04-04 15:42:34 +02:00
Daniel García Aubert
25a291bb38 Improve waek assertion 2017-04-04 09:50:45 +02:00