Simon Martín
|
a00891ff98
|
grouping all the copy tests in one describe
|
2018-06-12 16:46:54 +02:00 |
|
Simon Martín
|
8a15b2f8d1
|
Merge branch 'master' into pgcopy-stream-refactor2
|
2018-06-12 15:21:28 +02:00 |
|
Rafa de la Torre
|
fc12917938
|
Please jshint
|
2018-06-11 19:26:40 +02:00 |
|
Rafa de la Torre
|
b1073dc401
|
Test for the COPY FROM + disconnect
|
2018-06-11 19:17:23 +02:00 |
|
Rafa de la Torre
|
66664de286
|
Make the test far more robust
|
2018-06-11 19:04:33 +02:00 |
|
Rafa de la Torre
|
1417dedfd3
|
Final touches for client disconnect test
|
2018-06-11 18:45:12 +02:00 |
|
Rafa de la Torre
|
62fe8abd0a
|
A much cleaner test
|
2018-06-11 18:38:18 +02:00 |
|
Rafa de la Torre
|
4b6ee133df
|
Mess a little with the timeouts
|
2018-06-11 18:18:44 +02:00 |
|
Rafa de la Torre
|
52590faeac
|
Add a test for client disconnection scenarios
|
2018-06-11 17:28:53 +02:00 |
|
Simon Martín
|
1174499dcf
|
Merge branch 'master' into pgcopy-stream
|
2018-06-11 14:38:52 +02:00 |
|
Simon Martín
|
8e8ccc9c67
|
removing old metrics in copy
|
2018-06-08 13:33:17 +02:00 |
|
Eneko Lakasta
|
03e484c5da
|
FIX tests. Create jobs should return 403 if auth fails
|
2018-06-05 15:49:15 +02:00 |
|
Eneko Lakasta
|
06282b61fb
|
refactor authenticatedRequest to masterRequest
|
2018-06-05 13:22:43 +02:00 |
|
Simon Martín
|
a8ccacbc09
|
size returns to unzipped
|
2018-06-05 13:16:01 +02:00 |
|
Rafa de la Torre
|
4022fb2967
|
Clean up before executing the copy suite
So that it can be executed saving a bit of setup/teardown time:
test/run_tests.sh --nodrop --nocreate test/acceptance/copy-endpoints.js
|
2018-06-04 15:46:52 +02:00 |
|
Simon Martín
|
b05ded92aa
|
db connections usage test
|
2018-06-01 11:26:28 +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
|
60beea19d7
|
add default public fallback tests
|
2018-05-30 13:28:50 +02:00 |
|
Eneko Lakasta
|
6e3eb8ef28
|
Fix test: add auth params to job
|
2018-05-30 11:48:15 +02:00 |
|
Simon Martín
|
5f8533bf99
|
get the size gzipped
|
2018-05-29 16:19:06 +02:00 |
|
Simon Martín
|
3cf28bb7ff
|
jshint happy
|
2018-05-25 18:50:56 +02:00 |
|
Simon Martín
|
22caa049ee
|
StreamCopyMetrics
|
2018-05-25 18:47:41 +02:00 |
|
Simon Martín
|
e2bba967f9
|
handling copyto errors
|
2018-05-24 19:48:24 +02:00 |
|
Simon Martín
|
3d8f45afd8
|
going red
|
2018-05-24 19:08:35 +02:00 |
|
Simon Martín
|
5ba7dca79c
|
copyfrom metrics to kibana
|
2018-05-23 10:30:37 +02:00 |
|
Paul Ramsey
|
8dd1d5babf
|
Try and quiet multipart query
|
2018-05-22 15:24:19 -04:00 |
|
Paul Ramsey
|
a4654f82b2
|
Merge branch 'pgcopy-stream' of github.com:CartoDB/CartoDB-SQL-API into pgcopy-stream-q
|
2018-05-22 10:37:50 -04:00 |
|
Paul Ramsey
|
ed696a96ec
|
Merge branch 'pgcopy-stream' of github.com:CartoDB/CartoDB-SQL-API into pgcopy-stream-q
|
2018-05-22 10:23:04 -04:00 |
|
Simon Martín
|
bfeea58268
|
copyFrom metrics to statsd tests
|
2018-05-22 16:07:04 +02:00 |
|
Simon Martín
|
30cb88c3f9
|
test for copyto without sql
|
2018-05-22 15:56:04 +02:00 |
|
Simon Martín
|
e347985465
|
changing query parameter name from sql to q
unify query validatrion
|
2018-05-22 15:42:57 +02:00 |
|
Simon Martín
|
79383bb119
|
removing only
|
2018-05-22 11:57:10 +02:00 |
|
Simon Martín
|
433bd01c27
|
copyto metrics
|
2018-05-22 11:54:10 +02:00 |
|
Simon Martín
|
81be15fbc3
|
adding format to copy metrics
|
2018-05-21 19:13:44 +02:00 |
|
Paul Ramsey
|
64fc0c32e3
|
Change from 'sql' as query parameter to 'q', aping existing sql api
|
2018-05-21 07:47:16 -07:00 |
|
Eneko Lakasta
|
e85994293b
|
remove fallback tests and refactor some http errors 403 -> 401
|
2018-05-17 17:13:00 +02:00 |
|
Simon Martín
|
d970742860
|
removing uneeded param
|
2018-05-11 14:10:52 +02:00 |
|
Simon Martín
|
791967877c
|
addining gzip support to copyfrom
|
2018-05-11 13:33:54 +02:00 |
|
Simon Martín
|
85528459b8
|
updating tests
|
2018-05-11 10:38:04 +02:00 |
|
Paul Ramsey
|
f0021264d2
|
Change from form-multipart to POST with chunked upload
|
2018-05-10 12:11:55 -07:00 |
|
Simon Martín
|
40c7878da9
|
improve test message
|
2018-05-08 18:38:57 +02:00 |
|
Simon Martín
|
a2d0163ece
|
ensuring works with sql parameter in query string
|
2018-05-08 12:51:52 +02:00 |
|
Simon Martín
|
fa0584e40a
|
adding error tests
|
2018-05-04 16:47:02 +02:00 |
|
Simon Martín
|
6939b54ac4
|
jshint happy
|
2018-05-04 15:27:56 +02:00 |
|
Simon Martín
|
db3984021c
|
ensuring query via multipart
|
2018-05-04 10:50:14 +02:00 |
|
Simon Martín
|
d19d236d24
|
test of copyto
|
2018-05-03 18:46:16 +02:00 |
|
Simon Martín
|
41a585d761
|
test of copyfrom
|
2018-05-03 18:32:39 +02:00 |
|
Simon Martín
|
5f8e1d8f53
|
fix validatePGEntitiesAccess access
|
2018-04-26 10:13:03 +02:00 |
|
Simon Martín
|
ff2225ee36
|
removing no sense tests
|
2018-04-24 17:24:13 +02:00 |
|
Simon Martín
|
ebbdbed836
|
EOF line
|
2018-04-24 15:56:35 +02:00 |
|
Simon Martín
|
b9295245d3
|
testing by authorized level
|
2018-04-24 13:22:15 +02:00 |
|
Simon Martín
|
43e08a6681
|
adding tests
|
2018-04-24 10:10:09 +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
|
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
|
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 |
|
Eneko Lakasta
|
2ec767c1fc
|
Set Vary Header to honor Authorization header when caching (fastly)
|
2018-03-13 11:59:07 +01:00 |
|
Simon Martín
|
250df81265
|
removing unused var
|
2018-03-05 16:17:04 +01:00 |
|
Simon Martín
|
35ffa06b74
|
using cartodb-redis in rate limit tests
|
2018-03-03 15:02:08 +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
|
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 |
|
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
|
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
|
5c7f5fbaa5
|
Merge branch 'master' into auth-api
|
2018-02-12 16:30:09 +01:00 |
|
Simon Martín
|
6e45c39b1f
|
Merge branch 'master' into pythonTimeout
|
2018-01-08 11:29:17 +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
|
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 |
|
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 |
|
Daniel García Aubert
|
74b92bc782
|
Implement tests
|
2017-08-09 12:53:59 +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
|
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
|
d48a901533
|
Merge branch 'master' into node-v6
|
2017-01-12 19:49:56 +01:00 |
|
Javier Torres
|
1f318a5f31
|
Test to ensure gpkg export does not add FID
|
2017-01-11 19:07:50 +01:00 |
|
Raul Ochoa
|
738e580862
|
Revert "Old code for closing test server"
This reverts commit 02a053c71d .
|
2016-12-19 15:37:34 +01:00 |
|
Raul Ochoa
|
443990c3a9
|
Test all
|
2016-12-19 15:28:24 +01:00 |
|
Raul Ochoa
|
02a053c71d
|
Old code for closing test server
|
2016-12-19 15:21:14 +01:00 |
|
Raul Ochoa
|
ba4499c196
|
Don't use extra function
|
2016-12-19 15:13:12 +01:00 |
|
Raul Ochoa
|
29e6c347d8
|
Test all
|
2016-12-19 14:31:39 +01:00 |
|
Raul Ochoa
|
59fba7c676
|
Only test regressions suite for travis debugging
|
2016-12-19 12:05:56 +01:00 |
|
Raul Ochoa
|
c0e51c4c1e
|
Explicit callback
|
2016-12-19 11:11:40 +01:00 |
|
Raul Ochoa
|
32aaccb33e
|
Merge branch 'master' into node-v6
|
2016-12-16 15:24:26 +01:00 |
|
Daniel García Aubert
|
05cfdae7f8
|
Fix "after" hook in acceptance test to not throw uncaught exception
|
2016-12-13 17:21:57 +01:00 |
|
Daniel García Aubert
|
acafd84acf
|
Reverts: fix backend crash to not throw an uncaught exception
|
2016-12-13 17:17:53 +01:00 |
|
Daniel García Aubert
|
ac65b8a68d
|
Fix backend crash test behavior
|
2016-12-13 11:10:14 +01:00 |
|
Raul Ochoa
|
779bbc4ddb
|
Drop if exists
|
2016-12-09 12:05:49 +01:00 |
|
Raul Ochoa
|
3747fed78f
|
query-returning suite
|
2016-12-09 11:26:45 +01:00 |
|
Raul Ochoa
|
b85ad66288
|
app-configuration suite
|
2016-12-09 11:19:01 +01:00 |
|
Raul Ochoa
|
67ba027ad5
|
COPY statements suite
|
2016-12-09 11:10:08 +01:00 |
|
Raul Ochoa
|
a473389f0c
|
Skipfields suite
|
2016-12-09 11:02:37 +01:00 |
|
Raul Ochoa
|
15df082486
|
System queries
|
2016-12-09 10:56:50 +01:00 |
|
Raul Ochoa
|
b9b58ccd1a
|
Pagination suite
|
2016-12-09 10:56:44 +01:00 |
|
Daniel García Aubert
|
c65124fc37
|
Fix backend crash to not throw an uncaught exception
|
2016-12-07 16:16:03 +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
|
2bc46ca034
|
Revert change
|
2016-11-24 17:28:59 +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 |
|