Daniel García Aubert
5dac9d956c
Add test
2019-09-16 11:18:50 +02:00
Raul Marin
a673e6d138
Update dependencies
2019-09-13 16:32:37 +02:00
Daniel García Aubert
6229455d25
Remove mechanism to reset named map's provider as, in the end, it's reading from storage (redis) always so cache isn't doing its job. There is already a mechanism to invalidate cache entry when a template is modified (see template-maps emits on "update" and "delete", and listeners attached at server startup)
2019-09-12 20:34:18 +02:00
Daniel García Aubert
7bf5deb4c1
Styling
2019-09-02 16:40:43 +02:00
Daniel García Aubert
2fbd9893bd
Going green: do not fail when source is empty
2019-09-02 14:09:13 +02:00
Daniel García Aubert
5a01c1c5eb
Going red: test to avoid error when the source table is empty
2019-09-02 13:38:28 +02:00
Daniel García Aubert
945c122dda
Update windshaft devel branch
2019-07-29 19:14:27 +02:00
Raul Marin
de49aa0bd4
Aggregation: Style improvements
2019-07-16 12:49:09 +02:00
Raul Marin
65beb6e460
Tweak the tests to accept Mapnik precision as valid
2019-07-16 12:49:09 +02:00
Raul Marin
492bcbfdaa
Aggregation tests: Enable mapnik and rework the complete cells test
...
Before it used to test exact tiles, now it test that if a cell/value is included
it will contain exactly the features that we expect
2019-07-16 12:48:58 +02:00
Raul Marin
d3e807583a
Use proper mode
2019-07-16 12:48:58 +02:00
Raul Marin
892479d9b9
API changes
2019-07-16 12:48:58 +02:00
Raul Marin
5e24f650af
Rework how aggregations are calculated
...
Pending fixing Mapnik tiles (pg-mvt work ok)
2019-07-16 12:48:12 +02:00
Raul Marin
de38f1f6fd
Tests: Avoid using st_buffer(geography)
...
It's really slow with PROJ6 since it involves creating different projections for almost each point,
and that's particularly slow in the new release
2019-07-16 12:48:12 +02:00
Daniel G. Aubert
0f1a3dfb34
Merge pull request #1055 from CartoDB/1054-test
...
Test for time dimension hour format
2019-07-11 16:04:06 +02:00
Daniel García Aubert
bca723bcf3
PLease jshint
2019-07-09 14:59:16 +02:00
Daniel García Aubert
ef39f23d1f
Fix tests to use map-config builder properly
2019-07-09 14:47:40 +02:00
Daniel García Aubert
45af291e6a
Remove test filter
2019-07-08 18:08:08 +02:00
Daniel García Aubert
a84184852e
Going green: skip analyses table while computing max-age directive
2019-07-08 18:05:30 +02:00
Daniel García Aubert
6cdb872bb5
Going red: add test to check the bad behavour of max-age directive when an analysis table is in affected tables of the map
2019-07-08 17:55:04 +02:00
Daniel García Aubert
5ca498d0f3
Typo
2019-07-04 16:18:43 +02:00
Daniel García Aubert
a894194b6b
Add more specific tests
2019-07-04 15:58:39 +02:00
Daniel García Aubert
2e8a5d0d86
Add test
2019-07-04 15:34:37 +02:00
Daniel García Aubert
f93ea0e95c
Merge branch 'master' into cartonik
2019-04-25 14:14:16 +02:00
Raul Marin
6549a3a023
Agg tests: Sort before compare to avoid failures due to paralellism
2019-04-10 19:32:32 +02:00
Mario de Frutos Dieguez
022e6a2f89
Tests using PG11 and Postgis 2.5 ( #1093 )
2019-04-10 13:06:39 +02:00
Daniel García Aubert
fa9d604fa3
Fix broken test
2019-03-22 19:09:58 +01:00
Raul Marin
ae59c4f996
Merge remote-tracking branch 'blessed/master' into 1073-aggregation-false
2019-03-14 17:01:07 +01:00
Raul Marin
8db090ae9c
Numeric histogram: Test when start and end are provided but not bins
2019-03-14 15:16:23 +01:00
Daniel García Aubert
6b2ad8826b
Move points to avoid x/y axes
2019-03-12 15:18:31 +01:00
Daniel García Aubert
8324d4c4c2
Place points out of boundaries to avoid conficlts with PG11
2019-03-12 10:35:16 +01:00
Javier Goizueta
cf193a71b2
Add tests for enabling default aggregation
2019-03-06 15:28:38 +01:00
Javier Goizueta
c5f5f43ccb
Fix test for disabling aggregations
...
See #1073
2019-03-05 22:17:04 +01:00
Daniel García Aubert
a412e37a32
Improve test descriptions
2019-03-01 17:21:55 +01:00
Daniel García Aubert
dcf147cdfb
linter
2019-03-01 17:05:35 +01:00
Daniel García Aubert
f9e5d9d0a9
Validate aggregation expresions
2019-03-01 17:02:06 +01:00
Daniel García Aubert
57a229655c
Implement aggregation functions
2019-03-01 15:45:38 +01:00
Daniel García Aubert
6dadb1bf6f
Validate aggregation input
2019-03-01 15:17:22 +01:00
Daniel García Aubert
77d5d8ebd4
Be able to aggregate by a field
2019-03-01 11:21:18 +01:00
Daniel García Aubert
92e62069d4
Improve error handling
2019-02-28 12:13:15 +01:00
Daniel García Aubert
32938eeab7
Validated only aggregated layers can be requested by the new endpoint
2019-02-27 18:54:21 +01:00
Daniel García Aubert
561be2e5e8
Add tests
2019-02-27 12:43:26 +01:00
Daniel García Aubert
c3df075d91
Draft
2019-02-26 19:19:44 +01:00
Daniel García Aubert
5f43db2e36
Remove POSTGIS_VERSION env variable and run test using mvt renderer always
2019-02-22 08:31:22 +01:00
Daniel García Aubert
f4b6173da9
Fix test
2019-01-30 16:54:19 +01:00
Daniel García Aubert
abe28937ca
Lint
2019-01-30 15:28:43 +01:00
Daniel García Aubert
d5af1bd9a2
Implement tests to check the limit error is the expected one
2019-01-30 15:15:07 +01:00
Simon Martín
644b4232ca
adding Authorization to Access-Control-Allow-Headers
2019-01-10 16:56:07 +01:00
Daniel García Aubert
f3b1bb742a
Ensure all pg connections are being refreshed
2018-11-06 12:17:39 +01:00
Daniel García Aubert
af4b9f57f5
Skip just torque database timeout limit
2018-11-05 19:10:08 +01:00
Daniel García Aubert
6e7bd2585f
Skip database timeout test
2018-11-05 18:53:00 +01:00
Daniel García Aubert
40ccdfd9b3
Drain pool connection before
2018-11-05 18:37:20 +01:00
Daniel García Aubert
f2180576de
Remove test filter
2018-11-02 13:57:56 +01:00
Daniel García Aubert
babfa9aae3
Revert "Skip test temporally"
...
This reverts commit ebf2f54cd5
.
2018-11-02 13:30:04 +01:00
Daniel García Aubert
ebf2f54cd5
Skip test temporally
2018-11-02 12:39:34 +01:00
Daniel García Aubert
20c1e8ca05
Revert "Revert "Add cache-buster to hit database always""
...
This reverts commit 60724897cc
.
2018-11-02 12:24:45 +01:00
Daniel García Aubert
ebe2d2ddab
Revert "Add log to debug server option"
...
This reverts commit b4e57438ed
.
2018-11-02 12:23:48 +01:00
Daniel García Aubert
1ee30e9b53
Revert "Move log to debug server option"
...
This reverts commit 938e3b2b07
.
2018-11-02 12:23:36 +01:00
Daniel García Aubert
7527003711
Revert "Move log to debug server option"
...
This reverts commit 6c3d8dbe64
.
2018-11-02 12:23:05 +01:00
Daniel García Aubert
6c3d8dbe64
Move log to debug server option
2018-11-02 11:23:44 +01:00
Daniel García Aubert
938e3b2b07
Move log to debug server option
2018-11-02 11:12:32 +01:00
Daniel García Aubert
b4e57438ed
Add log to debug server option
2018-11-02 10:58:17 +01:00
Daniel García Aubert
60724897cc
Revert "Add cache-buster to hit database always"
...
This reverts commit e03defc30f
.
2018-11-02 10:29:19 +01:00
Daniel García Aubert
e03defc30f
Add cache-buster to hit database always
2018-11-02 10:21:53 +01:00
Daniel García Aubert
3bb1f893af
Test only
2018-11-01 15:05:38 +01:00
Javier Goizueta
b0d1d5a07a
Fix test
2018-10-31 12:39:06 +01:00
Javier Goizueta
c63380427e
Fix comment
2018-10-31 12:02:23 +01:00
Javier Goizueta
102e75ce95
Add test for hours time dimension
...
It tests the problem solved in #1054
2018-10-31 12:00:40 +01:00
Daniel García Aubert
ca7acb8339
Merge branch 'master' into use-strict
2018-10-25 11:11:30 +02:00
Rafa de la Torre
9f0d4905b1
Merge pull request #1053 from CartoDB/fix-tests-undefined-server
...
Fix for non-deterministic test (undefined server)
2018-10-24 12:11:36 +02:00
Daniel García Aubert
89d10210be
Fix undefined context error in test, it raised after forcing strict mode
2018-10-24 11:58:20 +02:00
Rafa de la Torre
545d387bb4
Fix for non-deterministic test (undefined server)
...
When running tests I got this error:
```
1) multilayer error cases bogus sql raises 400 status code:
TypeError: Cannot read property 'listen' of undefined
at Function.assert.response (test/support/assert.js:93:26)
at Function.requestLayergroup (test/acceptance/ported/support/test_client.js:79:20)
at next (node_modules/step/lib/step.js:51:23)
at Step (node_modules/step/lib/step.js:122:3)
at Object.createLayergroup (test/acceptance/ported/support/test_client.js:75:5)
at Context.<anonymous> (test/acceptance/ported/multilayer_error_cases.js:304:20)
```
The problem is that `server` is declared but its initialization
may depend on the order of execution of suites, which is basically
that of the filesystem/checkouts.
That is fixed by returning `getServer()`, which seems to be the
original intent: return a singleton of `CartodbServer` properly
initialized in case it is not overriden through options.
2018-10-23 18:55:31 +02:00
Daniel García Aubert
e2d27db828
Ise strict mode for moduler under test folder
2018-10-23 18:39:02 +02:00
Raul Ochoa
b13ae62d0f
Do not assert the estimated count as it seems to change over pg versions
2018-10-23 16:02:37 +00:00
Raul Ochoa
abd378e5f6
Run tests based on PostGIS version
2018-10-23 15:47:48 +00:00
Raul Ochoa
3e261fb353
Going red: fails with 400 due to "Cannot read property 'geom_type' of undefined"
2018-10-23 15:49:34 +02:00
Rafa de la Torre
83897293c6
Fix test by giving redis enough time to delete
2018-10-17 17:35:36 +02:00
Rafa de la Torre
f26ddef244
Make rate limit tests work in dual mode
2018-10-17 17:35:36 +02:00
Rafa de la Torre
d25e8e9798
Make the test work in dual mode (mapnik/pgis)
2018-10-17 17:35:36 +02:00
Rafa de la Torre
bfbd9a8f22
Fix another suite (compat mapnik/pgis)
2018-10-17 17:35:36 +02:00
Rafa de la Torre
bd17f9f5e1
A better implementation of mvt suites
2018-10-17 17:35:36 +02:00
Rafa de la Torre
8491b86c17
Extract test generation function
2018-10-17 17:35:36 +02:00
Rafa de la Torre
376a3743c1
Fix buffer size per format tests
2018-10-17 17:35:36 +02:00
Rafa de la Torre
a42af5e0d5
Do not run test if ST_AsMvt not avail.
2018-10-17 17:35:36 +02:00
Rafa de la Torre
e157649571
Use of postgis renderer based on availabilty
2018-10-17 17:35:36 +02:00
Rafa de la Torre
e50d1a10d0
Skip tests if they cannot be run
...
If configured with `mvt.usePostGIS` but with no postgis version
supporting it, they should be skipped.
2018-10-17 17:35:36 +02:00
Rafa de la Torre
d474d49ce8
Do not use point in world's border
2018-10-17 17:35:36 +02:00
Rafa de la Torre
4dba4ef641
Tweak the scale denominator for pg-mvt renderer
...
The scale denominator is calculated with float values and more
precision, resulting in different (but more accurate) values
2018-10-17 17:35:36 +02:00
Rafa de la Torre
be08fa3bfa
Tweak id's to test against pg-mvt renderer
...
Actually, the ID's are not generated by ST_AsMVT. They appear as an
artifact of testing, when using toGeoJSONSync (implemented in mapnik).
2018-10-17 17:35:36 +02:00
Daniel García Aubert
184a804367
Improve assertions
2018-10-15 15:25:23 +02:00
Daniel García Aubert
c234b4ea91
Organize params
2018-10-15 08:30:51 +02:00
Daniel García Aubert
db13f5e4f3
ES6 tweaks
2018-10-15 08:25:44 +02:00
Daniel García Aubert
f9a8b3c827
Add acceptance test
2018-10-15 08:23:39 +02:00
Daniel García Aubert
5c56ea6b22
Add test to validate that Postgis and Mapnik renderers are using overviews tables
2018-10-11 17:59:49 +02:00
Javier Goizueta
d4bd706fe2
Clarify some tests
2018-10-08 19:16:32 +02:00
Javier Goizueta
9ed39f149b
Time dimension tests
2018-10-07 22:46:02 +02:00
Javier Goizueta
0e85aa56da
Fix test
2018-10-07 11:35:28 +02:00
Javier Goizueta
2f59919f84
Dimension metadata test
2018-10-07 00:29:12 +02:00
Javier Goizueta
fbcfc7a582
WIP: time dimensions for aggregation
2018-09-20 21:12:54 +02:00
Javier Goizueta
6ba9e50da7
Minor tests refactor
2018-09-13 08:54:59 +02:00