Raul Marin
6aaa5f99e2
Test: PARALLEL compatibility (OSX)
2017-11-14 16:18:22 +01:00
Daniel García Aubert
520e84e46b
Add acceptance test for analyses controller
2017-11-14 13:46:47 +01:00
Raul Marin
172b3ece71
Test: Strip PARALLEL labels for PostgreSQL releases before 9.6
2017-11-13 14:59:13 +01:00
Daniel García Aubert
743bb0723b
Add query param to define the number of categories to be ranked
2017-11-07 16:14:47 +01:00
David Manzanares
d30f710534
Merge remote-tracking branch 'origin/master' into mvt-path-conf
2017-10-10 17:53:28 +02:00
Simon Martín
8380d291d0
Merge branch 'master' into middlewarify
2017-10-10 14:59:50 +02:00
Raul Ochoa
a797e13eb3
Make all calls to finish to match (err, res) signature
2017-10-09 15:51:42 +00:00
David Manzanares
58be2b8fc5
Merge remote-tracking branch 'origin/improve-test-client' into mvt-path-conf
2017-10-06 16:08:13 +02:00
David Manzanares
78671aa499
remove redundant format support
2017-10-06 16:07:47 +02:00
Raul Ochoa
b9c511ee60
Remove unused file
2017-10-06 15:27:48 +02:00
Raul Ochoa
64fe070ab2
Put layergroupId handling close
2017-10-06 15:27:03 +02:00
Raul Ochoa
5d750f3b98
Several jshint fixes
2017-10-06 15:24:58 +02:00
Raul Ochoa
664892bba9
Complexity already fixed
2017-10-06 15:15:43 +02:00
Raul Ochoa
38c50e0bec
Fix jshint hint
2017-10-06 15:15:33 +02:00
Raul Ochoa
6c0e6210d6
Split response validation
2017-10-06 15:15:16 +02:00
Raul Ochoa
f350206990
Strict check
2017-10-06 12:54:37 +00:00
Raul Ochoa
c8d2c9ea37
Do NOT throw error when not being in step context
2017-10-06 12:41:50 +00:00
David Manzanares
54b7ee85c2
Geojson tests adapted to MVT
2017-10-05 14:38:43 +02:00
Raul Ochoa
78404b1308
Merge remote-tracking branch 'origin/master' into layergroup-token-param
2017-09-22 11:12:42 +00:00
Daniel García Aubert
01a22a45bb
Move setUserDatabaseTimeoutLimit
from class method to a instance method
2017-08-10 17:09:05 +02:00
Raul Ochoa
9524433437
Use instance server
2017-08-10 16:24:40 +02:00
Raul Ochoa
14d5ee4178
Remove user param
2017-08-10 16:22:45 +02:00
Daniel García Aubert
14f85abd39
Merge branch 'master' into response-time-limit
2017-08-09 18:48:38 +02:00
Raul Ochoa
e9d925334c
Move layergroup-token to models
...
We will share it between tests and a middleware to parse the token.
2017-08-04 17:51:10 +02:00
Daniel
a696bdc723
Merge pull request #706 from CartoDB/705-special-numeric-values
...
Support special numeric values for json responses
2017-08-03 15:21:29 +02:00
Daniel García Aubert
90ded34af7
Do not fail if layergroup is undefined
2017-08-03 12:22:30 +02:00
Daniel García Aubert
1bc5c04489
Remove unused method
2017-08-02 13:15:40 +02:00
Daniel García Aubert
b2b68ffd5c
Merge branch 'master' into 691-date-histogram
2017-08-01 16:07:27 +02:00
Daniel García Aubert
91b3e373b7
Add helper method to fetch static images
2017-08-01 11:46:48 +02:00
Daniel García Aubert
227c2b336b
Uncomment database timeout configuration
2017-07-31 18:25:34 +02:00
Daniel García Aubert
ac7509b01a
Expose function to clean up database connections
2017-07-31 18:24:42 +02:00
Daniel García Aubert
9b5482489e
Fix content-type defaults
2017-07-31 18:23:17 +02:00
Daniel García Aubert
f079c24554
Use parsed body variable
2017-07-31 18:22:13 +02:00
Daniel García Aubert
04da57fe0c
Do not create layergroup if it is already provided
2017-07-31 18:14:32 +02:00
Daniel García Aubert
aa6d01f151
Add timeout test for attributes
2017-07-31 18:12:33 +02:00
Daniel García Aubert
435d902e45
Expose function to clean all database connections in the pool
2017-07-31 18:10:14 +02:00
Daniel García Aubert
cca570e832
Uncomment DB and role configuration
2017-07-28 13:23:13 +02:00
Daniel García Aubert
815eac5a48
Add hook to refresh all connections in the pool
2017-07-28 13:22:16 +02:00
Daniel García Aubert
33e77a42f2
Separate user timeout suites between render and database
2017-07-27 18:50:27 +02:00
Daniel García Aubert
9e491e7e9a
Fix tests names
2017-07-27 16:29:36 +02:00
Daniel García Aubert
522fc79d71
Do not remove redis' keys if layergroup was not created
2017-07-27 12:46:38 +02:00
Daniel García Aubert
768d06c582
Assert layer params is defined but mapnik layers
2017-07-26 18:35:40 +02:00
Daniel García Aubert
526e850f26
Add method to set statements timeout for user's role and database
2017-07-25 19:15:43 +02:00
Daniel García Aubert
e9bc0732c0
Use switch statement instead of if ... else if ... else ...
2017-07-19 12:33:57 +02:00
Daniel García Aubert
8907082a85
Parse body relying on content-type header
2017-07-19 12:24:37 +02:00
Daniel García Aubert
87eb5407a8
WIP: implement timeout limit for raster
2017-07-18 20:50:31 +02:00
Daniel García Aubert
40dc94e010
Merge branch 'master' into response-time-limit
2017-07-18 11:25:23 +02:00
Daniel García Aubert
ff13996255
Add test to check that mvt returns 200 when tile has data
2017-07-18 10:44:27 +02:00
Daniel García Aubert
eccc3597aa
Respond with 204 when vector tile is empty
2017-07-17 19:44:18 +02:00
Carlos Matallín
70b4d5b7fd
replace timezone => offset
2017-07-14 18:30:36 +02:00
Daniel García Aubert
37c970903e
Avoid uncaught exception when layergroup is not present
2017-07-05 19:09:14 +02:00
Daniel García Aubert
13764e18ce
Going red: attributes service do not support special numeric values (Infinity, -Infinity, NaN)
2017-06-27 11:21:05 +02:00
Daniel García Aubert
e44d418db3
Going red: Add test to check that aggregation dataview supports numeric special value
2017-06-21 18:44:21 +02:00
Daniel García Aubert
c08db78a0b
Going red: implement test to check aggregation with overviews support special float values
2017-06-13 19:01:28 +02:00
Daniel García Aubert
c1fac13d6b
Be able to accept timezone parameter
2017-06-02 12:45:34 +02:00
Daniel García Aubert
1d66e49910
WIP implemented date histogram
2017-06-01 20:07:46 +02:00
Daniel García Aubert
5a1623b667
Merge branch 'master' into 664-layergroup-stats
2017-05-31 11:50:32 +02:00
Raul Ochoa
248adab05b
Catch response body if any to capture Redis keys
2017-05-26 13:06:04 +02:00
Raul Ochoa
f4e99629f6
Do not assert inside response, but pass error into callback
...
Preferably we should put response outside of assert and change its
callback signature. However, I don't think it is worth the effort
right now.
2017-05-26 13:02:02 +02:00
Mario de Frutos
c9e6e921cb
Merge branch 'master' into 664-layergroup-stats
2017-05-18 13:45:38 +02:00
Mario de Frutos
44cca38538
Change to tests for layer stats because now uses CDB_EstimateRowCount fuction
2017-05-12 12:51:45 +02:00
Mario de Frutos
b25540720c
Added acceptance tests for stats functionallity
2017-05-09 14:36:35 +02:00
Mario de Frutos
be58adb1b9
Be able to override buffer-size configuration without placeholders in named maps
2017-04-28 19:20:00 +02:00
Daniel García Aubert
2f4e4246a4
Refactor test-client in order to use same interface for named and anonymous maps
2017-04-26 18:27:18 +02:00
Mario de Frutos
7ea7a991aa
Buffersize customizable through named maps' placeholders
2017-04-25 19:27:31 +02:00
Daniel García Aubert
0c08713521
First attempt: support buffer-size configuration for named maps
2017-04-25 14:34:17 +02:00
Daniel García Aubert
fed953d195
Support mvt tiles
2017-04-24 18:55:08 +02:00
Mario de Frutos
4132bc755d
Add cdb_invalidate_varnish function fixture to tests
2017-04-07 15:59:58 +02:00
Raul Ochoa
281588abd2
Add test to validate bins
param is casted as Number
2017-02-02 16:12:49 +01:00
Daniel García Aubert
c6cb573383
Since crankshaft is installed by default in template-postgis we have to remove it before running test
2016-10-25 15:55:24 +02:00
Javier Goizueta
9c6d7c0ff9
Upgrade camshaft to 0.46.0
...
This version of camshaft requires a CDB_CheckAnalysisQuota function
to check analysis cache quota.
2016-10-20 12:56:18 +02:00
Daniel García Aubert
1772011627
Add missinng column in fixture table cdb_analysis_catalog
2016-09-06 16:19:06 +02:00
Raul Ochoa
4c557be2c2
Update to use latest cdb_analysis_catalog
...
It avoids to execute queries that are extension specifics
2016-07-02 19:50:59 +02:00
Raul Ochoa
c1acc54d55
Add constants for cartocss symbolizers
2016-06-29 16:07:42 +02:00
Raul Ochoa
5f3fb6e5f7
Adds fake CDB_KMeans function
2016-06-29 16:07:01 +02:00
Raul Ochoa
863128013d
Use psql client instead of pg query runner to use proper params
2016-06-21 12:08:40 +02:00
Raul Ochoa
b2029e09f5
Add CDB_OverviewsSupport sql from extension to fix CDB_Overviews calls
2016-06-20 13:26:30 +02:00
Raul Ochoa
e797719b41
Append url params for widgets
2016-06-06 17:10:36 +02:00
Raul Ochoa
9a4aa7c1fa
Add params to url if present in override option
2016-06-01 15:00:30 +02:00
Raul Ochoa
290054ef5d
Add widget search support in test client
2016-06-01 11:43:19 +02:00
Raul Ochoa
6eb711e70b
Merge remote-tracking branch 'origin/master' into mapconfig-dataviews-adapter
2016-05-31 18:51:13 +02:00
Raul Ochoa
8a07f9f57e
Create plpythonu extension
2016-05-31 18:45:43 +02:00
Raul Ochoa
ca367d0fe7
Use plpython version of CDB_QueryStatements
2016-05-31 18:39:03 +02:00
Raul Ochoa
cd7adbd792
Return a dataview/widget from response body
2016-05-31 18:20:16 +02:00
Raul Ochoa
5b76ec9f68
Merge remote-tracking branch 'origin/master' into mapconfig-dataviews-adapter
2016-05-31 17:14:28 +02:00
Raul Ochoa
22f3a54fbf
Option to skip sql files download
2016-05-31 16:57:28 +02:00
Raul Ochoa
6644711969
Use a variable instead of a tmp file
2016-05-31 16:46:57 +02:00
Raul Ochoa
989df4a8a4
curl over all remote files at the same time
2016-05-31 16:42:42 +02:00
Raul Ochoa
86e8cedfab
All remote sql files together
2016-05-31 15:17:41 +02:00
Raul Ochoa
f602ea88e2
Convert widgets from layers into dataviews
...
It also converts filters so full dataviews backend is reusable, that removes
widgets backend dependency.
2016-05-26 19:32:58 +02:00
Raul Ochoa
c372d69e98
LayergroupToken only makes sense at testing environment
2016-05-23 13:01:23 +02:00
Javier Goizueta
48415fb1f3
Merge branch 'master' into overviews-widgets-2
2016-05-18 13:58:55 +02:00
Javier Goizueta
24f7bc6596
Add tests for dataviews with overviews
2016-05-18 07:47:30 +02:00
Raul Ochoa
91f39abc69
Going red for #455
2016-05-17 14:59:21 +02:00
Raul Ochoa
c12e5f7a27
Fix named maps with analysis
...
Named map provider was missing analysis backend dependency
Fixes #450
2016-05-13 16:57:27 +02:00
Raul Ochoa
c77ea49594
Use a more aggressive cache control header for node status endpoint
2016-05-05 17:52:37 +02:00
Raul Ochoa
755dfe6822
Append dataviews related columns to layers
2016-04-27 18:30:05 +02:00
Raul Ochoa
da602eeda0
Use inline execution in camshaft instead of a database service stub
2016-04-14 17:25:08 +02:00
Raul Ochoa
a26025b259
Add analysis backend so it's possible to inject configuration
2016-04-14 17:09:07 +02:00
Raul Ochoa
26149e7755
cdb_analysis_catalog is already retrieved from camshaft
2016-04-14 11:53:48 +02:00
Raul Ochoa
2d4fd62acf
Do not create triggers for tests
2016-04-14 11:44:17 +02:00
Raul Ochoa
ff147ca3bf
Add dataviews to layergroup metadata
2016-03-18 18:09:17 +01:00
Raul Ochoa
b3bbb9d97a
Initial checkin for dataviews
...
It only supports histograms.
2016-03-18 17:22:02 +01:00
Raul Ochoa
ed84ed8475
Test client detect png request based on regex
2016-03-17 12:45:05 +01:00
Raul Ochoa
a444b80c96
Fix typo
2016-03-17 12:44:51 +01:00
Raul Ochoa
6db48a24b8
Adds test for analysis with no api key
2016-03-14 16:42:51 +01:00
Raul Ochoa
a05f3d6ee9
Add cdb_analysis_catalog table and first test using source:id
2016-03-14 16:06:25 +01:00
Raul Ochoa
eec44dd62d
Merge branch 'master' into analysis-layers
...
Conflicts:
npm-shrinkwrap.json
test/support/test-client.js
2016-03-14 15:13:19 +01:00
Daniel García Aubert
affa254b9d
Moved and adapted acceptance test for turbo-cartocss integration
2016-03-08 20:06:43 +01:00
Raul Ochoa
ecd33e5561
TestClient with method to retrieve tiles
2016-03-08 15:56:08 +01:00
Raul Ochoa
c7bdabfc65
Merge branch 'new_querytables_library' into analysis-layers
2016-03-04 12:08:57 +01:00
Raul Ochoa
16a7c4fa3d
Merge branch 'master' into new_querytables_library
...
Conflicts:
test/support/prepare_db.sh
test/support/sql/CDB_QueryStatements.sql
2016-03-04 00:39:14 +01:00
Raul Ochoa
3979cda8c2
Change comment about regex
2016-03-04 00:11:06 +01:00
Raul Ochoa
f19c1a34ec
Implement CDB_QueryStatements as SQL language function
...
Do not relies on cartodb-postgresql extension which relies on
plpythonu language. That avoid installing it in travis-ci.
2016-03-03 20:48:37 +01:00
Raul Ochoa
6823fd8b03
Better datasets for analysis
2016-03-02 12:43:00 +01:00
Raul Ochoa
a44477dddc
TestClient with method to retrieve tiles
2016-03-02 12:40:53 +01:00
Raul Ochoa
b9d2e297b6
Merge branch 'master' of github.com:CartoDB/Windshaft-cartodb into analysis-layers
2016-02-24 10:35:28 +01:00
Alejandro Martínez
dcf156ba21
Merge remote-tracking branch 'origin/master' into new_querytables_library
2016-02-23 19:20:10 +01:00
Raul Ochoa
dd8340b400
Do not leak redis connections
...
Reuse redis client in afterEach and quit client in function
2016-02-22 17:51:53 +01:00
Raul Ochoa
2393a611a8
dry
2016-02-22 16:41:55 +01:00
Raul Ochoa
495fdaf8ec
Rename assert.imageEqualsFile
2016-02-22 16:36:06 +01:00
Raul Ochoa
da680ec2a8
Code re-org
2016-02-22 16:08:16 +01:00
Raul Ochoa
3cadf7f2a2
Make imagesAreSimilar private
2016-02-22 16:07:26 +01:00
Raul Ochoa
7c7bec6f31
Remove imagemagick reference
2016-02-22 16:05:12 +01:00
Raul Ochoa
0683f638ce
Do not take optional name hint
2016-02-22 16:04:31 +01:00
Raul Ochoa
ae9daed43f
Better naming for imageBuffersAreSimilar
2016-02-22 16:02:15 +01:00
Raul Ochoa
5301e748de
Do not create intermediate files when there is no need
2016-02-22 16:00:30 +01:00
Raul Ochoa
37ae6b4fa0
Rely on mapnik.Image instead of compare from imagemagick
2016-02-22 15:38:29 +01:00
Alejandro Martínez
37fcfe69c7
Merge remote-tracking branch 'origin/master' into new_querytables_library
2016-02-22 15:35:36 +01:00
Raul Ochoa
842fa4dfd2
Create populated places private table for named maps + widgets
2016-02-19 17:48:19 +01:00
Raul Ochoa
b7fff960a2
Ignore CDB_ sql files downloaded for tests
2016-02-18 14:52:08 +01:00
Raul Ochoa
3d0c0f34ad
Use a set to compare surrogate keys, avoiding key order errors
2016-02-17 12:18:57 +01:00
Raul Ochoa
8d4ebc171b
Use a set to compare surrogate keys, avoiding key order errors
2016-02-17 12:15:43 +01:00
Raul Ochoa
6ece30fa2c
Ignore CDB_ sql files downloaded for tests
2016-02-17 11:47:27 +01:00
Alejandro Martínez
9e7b288f44
Merge remote-tracking branch 'origin/master' into new_querytables
2016-02-15 11:47:29 +00:00
Alejandro Martínez
a656285001
Run tests against master cartodb-postgresql
2016-02-12 17:25:57 +01:00
Javier Goizueta
5b50e784cd
Merge branch 'master' into overviews-work
2016-02-09 17:14:08 +01:00
Raul Ochoa
d78e01b7a4
Extract getWidget to TestClient
2016-02-05 12:59:33 +01:00
Javier Goizueta
0a218da835
Implement an Overviews query rewriter
...
Use the Windshaft query-rewriter interface to adapt queries so
they use available overview tables.
This requires a version of Windshaft that implements the query-rewriter
interface (package.json/npm-shrinkwap.json have yet to be updated)
2016-02-04 10:26:31 +01:00
Raul Ochoa
81200b72b4
Merge branch 'master' into overviews-work
...
Conflicts:
test/acceptance/multilayer.js
2016-01-28 19:48:11 +01:00
Raul Ochoa
d6ecb8c793
Remove trailing whitespace
2016-01-28 19:44:25 +01:00
Javier Goizueta
5038ae6b1b
Fix data for overviews integration tests
2016-01-27 17:40:12 +01:00
Javier Goizueta
6dbb0cb1c1
Emulate new overview table naming schme in the tests
2016-01-26 15:08:55 +01:00
Javier Goizueta
ef9e9f8c78
Adapt to changes in CDB_Overviews SQL function
...
Now data for multiple tables is obtained in one call, simplifying the
use of this function. Also base table is returned as an oid, so we
now have the overview base table names with schema only when needed.
2016-01-26 11:38:21 +01:00
Javier Goizueta
1f6d5cfd6d
Fix signature of CDB_Overviews
2016-01-21 18:39:31 +01:00
Javier Goizueta
532654eea8
Add tests for the OverviewsApi
2016-01-21 13:33:45 +01:00
Javier Goizueta
528574c550
Add dummy CDB_Overviews SQL function for tests
2016-01-20 17:10:12 +01:00
Raul Ochoa
19216eaa88
Use create language instead of extension
2016-01-13 20:21:54 +01:00
Raul Ochoa
f33c3ce21a
rmdirRecursiveSync DRY
2015-09-25 19:56:28 +02:00
Raul Ochoa
4f4dab143e
Make tests to fail if unexpected keys are found in redis
...
Make test fail if they try to remove unexistent redis key
2015-09-25 19:23:33 +02:00