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
47576358a2
Remove hack of stripping PARALLEL labels for PG releases before 9.6
2019-02-22 07:52:39 +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
659b0ba889
Use pdql.end with callback
2018-11-05 18:14:26 +01:00
Daniel García Aubert
71b8699f47
Shut down the pool after setting the database timeout
2018-11-05 17:16:22 +01:00
Daniel García Aubert
24c5bbb182
Workaround to drain pg pool effectively
2018-11-05 16:50:52 +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
Javier Goizueta
5d813b6e43
Add more tests for aggregation accuracy
...
Some tests are skipped for Mapnik MVTs, because its bbox filtering isn't accurate
2018-09-12 19:26:09 +02:00
Javier Goizueta
acf0b082b4
Perform some tests for all placements
...
The "only the_geom" and other aggregation tests were perform only for default aggregation.
2018-09-12 11:25:21 +02:00
Raúl Marín
fb6987e91a
Merge pull request #1027 from CartoDB/carto_mvt_extent
...
Update Windshaft to 4.9.0
2018-09-05 13:30:12 +02:00
Eneko Lakasta
564884797d
add tests to check that flags for non overviews instantiation are correct
2018-09-05 12:39:51 +02:00
Eneko Lakasta
d72a5075b9
move overviews flags in named map instantiation checks to its own specific tests
2018-09-05 11:48:21 +02:00
Eneko Lakasta
880ef63720
add to logs named maps overviews instantiation
2018-09-04 16:21:20 +02:00
Eneko Lakasta
b75150e91e
set mapType in the controller instead of in the adapter
2018-09-04 16:20:38 +02:00
Eneko Lakasta
7df0fb456b
add to log anonymous maps instantiations that use overviews tables
...
Added to tiler profiler object:
overviewsAddedToMapconfig: true
mapType: 'anonymous'
2018-09-04 15:13:17 +02:00
Eneko Lakasta
95d179835c
add to logs even if no overviews tables were used.
...
{usesOverviews:false}
2018-08-30 14:52:37 +02:00
Eneko Lakasta
7c52f504e5
add dataview type to overviews logs
2018-08-30 14:30:03 +02:00
Raul Marin
57258a9cd3
MVT (pg-mvt): Remove tests related to removed functionality
2018-09-03 14:59:20 +02:00
Eneko Lakasta
c9d50c412d
add tests for dataviews
2018-08-29 18:00:13 +02:00
Jesús Arroyo Torrens
31263b7b22
Add unit test
2018-08-16 14:15:28 +02:00
Jesús Arroyo Torrens
14cf3c1093
Fix typo
2018-08-16 12:16:20 +02:00
Javier Goizueta
fcfa763890
Merge pull request #1002 from CartoDB/aggregation-fixes
...
Aggregation fixes
2018-07-18 11:54:13 +02:00
Raul Marin
cd31f998dd
Tests: Use "UNION ALL" instead of "UNION" to improve performance
2018-07-17 12:43:50 +02:00
Javier Goizueta
51c3215137
Change UNION by UNION ALL in tests
...
It seems UNION (without ALL) can be much slower in recent PG versions
2018-07-17 12:42:33 +02:00
Javier Goizueta
e5d4369203
Fix test
2018-07-16 14:59:26 +02:00
Javier Goizueta
e1ec38446d
Add aggregation test with buffer overlapping cells partially
...
Also fix resolution parameter incrrectly placed in some tests
2018-07-16 14:27:39 +02:00
Javier Goizueta
2d102c4810
Compensate for bbox lack of accuracy
2018-07-16 12:44:30 +02:00
Javier Goizueta
e59d0f520a
Restore tests
2018-07-16 12:02:37 +02:00
Javier Goizueta
2063ac15ee
Fix long lines
2018-07-16 11:58:56 +02:00
Javier Goizueta
92ef0a60fc
Test aggregation accuracy
...
This tests #1001
2018-07-15 22:17:00 +02:00
Javier Goizueta
e21ab12e4c
Test that tiles do not contain partially aggregated clusters
...
This tests #889
2018-07-15 22:15:57 +02:00
Javier Goizueta
b5a0c6505a
Merge pull request #998 from CartoDB/994-aggr-tests
...
Adapt tests for more accurate PROJ
2018-07-11 17:23:02 +02:00
Javier Goizueta
9cbcd43fda
Fix another test
2018-07-11 16:56:37 +02:00
Javier Goizueta
7cadbcc533
Fix tests, this time for good :fingers_crossed:
2018-07-11 16:47:10 +02:00
Javier Goizueta
d3a3a7353a
Fix tests
...
They were not numerical accuracy independent, as intended
2018-07-11 16:34:39 +02:00
Javier Goizueta
b8365e9f6e
Make sampling tests more stable
...
Some sample tests, which cannot use RNG seeding, are nondeterministical.
Increment size of test table used in sampling tests to make less likely that the sample is empty
2018-07-11 15:21:23 +02:00
Javier Goizueta
e17dd4b5fa
Make tests independent of coordinate accuracy by not placing points near tile boundaries
2018-07-11 13:19:07 +02:00
Raul Marin
8dcab568bd
Tests: Adapt torque tests to work with PROJ 5.1
2018-07-11 12:33:02 +02:00
Raul Marin
a0020804c9
Test (regressions.js): Remove all redis keys so tests can be run individually
2018-07-11 12:21:06 +02:00
Raul Marin
ea2126a301
Tests: Fix DB flags being ignored
2018-07-11 12:20:58 +02:00
Javier Goizueta
8442a9a711
Shorten long lines
2018-07-11 11:29:22 +02:00
Javier Goizueta
c07b3de43d
Adapt tests for more accurate PROJ
...
Fixes #994
With exact point 0,0 transformations, the point is between tiles and can appear in several
2018-07-11 10:33:58 +02:00
Eneko Lakasta
04c5b2aa36
Merge pull request #995 from CartoDB/14075-2buckets-bubble-legends
...
Use new version of turbo-carto 0.20.3
2018-07-09 16:23:35 +02:00
Rafa de la Torre
6411556a97
Test for histogram bins beyond limits
2018-07-04 18:33:02 +02:00
Eneko Lakasta
5d7af03228
remove .only from test
2018-07-03 16:20:09 +02:00
Eneko Lakasta
529368e858
Merge branch '984-sql-timeout-error-message' into 14075-2buckets-bubble-legends
2018-07-03 15:58:10 +02:00
Eneko Lakasta
fdc061b7ee
Please jshint
2018-07-03 15:02:58 +02:00
Eneko Lakasta
409a103990
update rate limit error message
2018-07-03 14:36:29 +02:00
Eneko Lakasta
6a6815d893
update render limits error message
2018-07-03 14:32:10 +02:00
Eneko Lakasta
37737e7941
Merge branch '984-sql-timeout-error-message' into 14075-2buckets-bubble-legends
2018-07-03 12:45:41 +02:00
Eneko Lakasta
a8d791e2d3
update tests with new error message
2018-07-02 13:03:01 +02:00
Eneko Lakasta
9226b67ab7
add tests
2018-06-29 15:03:45 +02:00
Simon Martín
1329f1f535
fix aggregation-dataview test filter
2018-06-28 12:41:52 +02:00
Simon Martín
66f38e8ecd
keep the original test name
2018-06-27 18:38:20 +02:00
Simon Martín
e45b41f55a
ensuring formula dataview filters infinities, nans and nulls
2018-06-27 18:04:48 +02:00
Simon Martín
37f6ac0c87
Merge branch 'master' into tilejson-url-apikey
2018-06-26 10:23:09 +02:00
Simon Martín
32ce033c06
improve tests titles
2018-06-25 15:09:18 +02:00
Simon Martín
abb194ca9c
test tiles base urls with default_public api key
2018-06-25 15:06:27 +02:00
Simon Martín
f0d190d157
tests tiles base urls with api key
2018-06-22 17:31:05 +02:00
Javier Goizueta
b05d9a0a75
Remove only from tests
2018-06-18 13:33:08 +02:00
Javier Goizueta
a5f985257c
Tests for dates_as_numbers with tokens
2018-06-18 13:14:17 +02:00
Javier Goizueta
90efe14bfb
Merge pull request #971 from CartoDB/cartovl-130
...
Send dates as unix epoch instead strings in .mvt files
2018-06-13 13:07:35 +02:00
Javier Goizueta
251570b638
Fix tests
2018-06-12 12:04:13 +02:00
Raúl Marín
7e7b268a66
Merge pull request #976 from Algunenano/auto_postgis
...
Test: Make POSTGIS_VERSION detection automatic
2018-06-12 10:09:40 +02:00
Javier Goizueta
5407df03fa
Implement missing tests
2018-06-11 19:31:15 +02:00
Javier Goizueta
84c34361a0
Fix loop limits, add per layer options in test mapconfig Factory
2018-06-11 19:30:48 +02:00
Raul Marin
50cf5e5c7a
Avoid infinite loop
2018-06-11 16:01:29 +02:00
Raul Marin
9bbbe9e7c1
Make POSTGIS_VERSION detection automatic
2018-06-11 14:47:39 +02:00
Eneko Lakasta
7f7eb78d8c
Merge branch 'master' into remove-auth-fallback
2018-06-11 12:02:58 +02:00
Raul Marin
102244f467
Regression: Accept layer option in the static map urls
2018-06-07 12:14:31 +02:00
Raul Marin
db946b93ec
Test: Use cartodb-psql to reset connections instead of calling node-postgres directly
...
- Avoids an issue with newer npm not finding node-postgres during the tests
as it was required directly but not declared in package.json.
- Avoids an issue with the torque timeouts tests
2018-06-06 13:18:28 +02:00
Javier Goizueta
5b637577c8
Fix conflict resolution gone wrong
2018-06-05 16:30:27 +02:00
Javier Goizueta
0258051f06
Merge branch 'cartovl-130' of github.com:CartoDB/Windshaft-cartodb into cartovl-130
...
# Conflicts:
# test/acceptance/date-wrapping.spec.js
2018-06-05 15:43:13 +02:00
Javier Goizueta
2ab22882d6
Slight code trimming
2018-06-05 15:39:15 +02:00
IagoLast
e8ecd9b2e0
Fix new test
2018-06-05 11:44:30 +02:00
Javier Goizueta
b10cf4bebb
New test for casted dates metadata
2018-06-05 11:25:00 +02:00
IagoLast
1491f29f96
Fix tests
2018-06-05 10:10:56 +02:00
IagoLast
9f4b6d5f43
Fix linter
2018-06-05 09:57:48 +02:00
IagoLast
7df1a19da4
Add test for multiple-layer date wrap
2018-06-05 08:58:44 +02:00
Ubuntu
ae4b233458
Pass tests
2018-06-01 10:18:07 +00:00
Ubuntu
6872d57581
Add tests
2018-06-01 10:08:34 +00:00
Eneko Lakasta
6414cd52c0
Merge branch 'master' into remove-auth-fallback
2018-05-30 17:53:24 +02:00
Javier Goizueta
34a2f3b32b
Tests were missing in previous commit
2018-05-28 16:50:53 +02:00