Commit Graph

1650 Commits

Author SHA1 Message Date
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
Daniel García Aubert
46bb400ffd Cast x-windshaft-cache header in order to fix assertions 2018-05-28 10:46:04 +02:00
Javier Goizueta
22a0f2c14e Merge branch 'master' into metadata-categories 2018-05-23 11:17:10 +02:00
Daniel García Aubert
54601db44a Remove test runner filter 2018-05-22 19:41:20 +02:00
Daniel García Aubert
4701decfcd No need to drain test-client 2018-05-22 19:37:46 +02:00
Daniel García Aubert
cc81c8ff4c Only test user database timeout against Postgis Renderer if available (Postgis >= 2.4) 2018-05-22 19:22:08 +02:00
Daniel García Aubert
8febc78d0e Do not test against Postgis renderer because it does not implement renderer timeout option 2018-05-22 19:20:37 +02:00
Daniel García Aubert
87838bd4ce Override cache buster in order to not hit any internal cache 2018-05-22 18:28:57 +02:00
Daniel García Aubert
dfc354550c Add method to override cache buster provided by server while fetching tiles and static images 2018-05-22 18:27:50 +02:00
Daniel García Aubert
ef36466b3b Fix test to use the right helper function to set the user render timeout 2018-05-22 18:19:41 +02:00
Javier Goizueta
7041039572 Add tests for category metadata parameters 2018-05-22 13:42:29 +02:00
Javier Goizueta
befedfd80a Use ifError to check for errors 2018-05-21 17:03:16 +02:00
Javier Goizueta
d828a92ea3 Use ifError to check for errors 2018-05-21 16:59:36 +02:00
Javier Goizueta
8e8458e557 Merge branch 'master' into metadata 2018-05-18 20:49:26 +02:00
Javier Goizueta
391ac51f0f Implement metadata queries with plain Promises
Remove usage of PhasedExecution
This achives better query execution granularity and
removes questionable usage of shared results object.
It introduces a couple of behavior changes:
* estimatedFeatureCount desn't ignore errors now
* sample always uses estimatedFeatureCount,even if the actual count is also computed.
2018-05-18 15:33:07 +02:00
Simon Martín
81bace1dca Merge branch 'master' into fix-dataview-typeof 2018-05-17 12:13:11 +02:00
Simon Martín
04e00bb834 Merge branch 'master' into fix-image-format-png 2018-05-16 14:40:59 +02:00
Daniel García Aubert
63a9d58c67 Add regression test 2018-05-14 12:28:57 +02:00
Javier Goizueta
b8109401d1 Tests for metadata with aggregation 2018-05-13 13:05:39 +02:00
Javier Goizueta
24b1b53ba0 Merge branch 'master' into metadata 2018-05-11 18:58:38 +02:00
Simon Martín
db7b4fa937 static image format tests 2018-05-11 17:41:26 +02:00
Javier Goizueta
cae4dd81c9 WIP: fix problems for aggregations & metadata 2018-05-10 19:12:47 +02:00
Simon Martín
99516f5a75 fix tests and jshint happy 2018-05-10 18:35:52 +02:00
Simon Martín
37a2e89c81 testing expected result with pg_typeof undefined 2018-05-10 18:34:18 +02:00
Simon Martín
ed837fbf22 improving tests raising the pg_typeof error 2018-05-10 17:25:02 +02:00
Simon Martín
913b29070f tests raising pg_typeof error 2018-05-10 15:59:38 +02:00
Javier Goizueta
f7745928ab Fix tests
eliminate dependency on the order of PostgreSQL results
2018-05-09 15:42:41 +02:00
Daniel García Aubert
976ee35a35 Use new routes configuration schema in ported test 2018-05-09 15:24:33 +02:00
Javier Goizueta
ee7bd5fb8a Fix tests 2018-05-09 12:42:42 +02:00
Javier Goizueta
fff5b3d85a Revert debugging changes 2018-05-09 11:59:24 +02:00
Javier Goizueta
d706d0eb22 More travis debugging through commits 2018-05-09 11:44:49 +02:00
Javier Goizueta
9c9cfd015d Add test for optional layer metadata 2018-05-08 20:06:14 +02:00
Eneko Lakasta
f60993b042 re-organize no api key token provided tests - explain tests 2018-05-08 14:41:16 +02:00
Eneko Lakasta
1005126a5f re-organize no api key token provided tests 2018-05-08 14:32:44 +02:00
Eneko Lakasta
0536d0abcb add test to check that the fallback api key used if none is sent, is the default public 2018-05-08 11:32:45 +02:00
Eneko Lakasta
f111ddf449 use matching cartodb-redis branch and run all tests 2018-05-07 16:07:28 +02:00
Eneko Lakasta
534c827904 remove auth fallback 2018-05-07 15:44:44 +02:00
Daniel García Aubert
9d1d5c439b Merge branch 'separate-routers' into improve-folder-structure 2018-04-18 17:08:11 +02:00
Daniel García Aubert
be5e419288 Merge branch 'separate-app-and-controllers-creation' into separate-routers 2018-04-18 17:06:53 +02:00
Daniel García Aubert
8afe6c5228 Merge branch 'master' into separate-app-and-controllers-creation 2018-04-18 17:05:27 +02:00
Daniel G. Aubert
20b46a33cf
Merge pull request #944 from CartoDB/improve-test-suite
Improve test suite
2018-04-18 16:58:52 +02:00
Daniel García Aubert
1694b4b3a6 Merge branch 'separate-routers' into improve-folder-structure 2018-04-17 16:07:47 +02:00
Daniel García Aubert
5b1b78d386 Merge branch 'separate-app-and-controllers-creation' into separate-routers 2018-04-17 15:56:33 +02:00
Daniel García Aubert
9c249596c0 Merge branch 'master' into separate-app-and-controllers-creation 2018-04-17 15:55:38 +02:00
Raul Marin
45adaf5dc2 Merge remote-tracking branch 'blessed/master' into mvt-invalid-props 2018-04-17 12:08:57 +02:00
Daniel García Aubert
6c466d13ff Typo 2018-04-17 11:36:33 +02:00
Daniel García Aubert
2ff410946a Add test to check that the regexp validates just digits 2018-04-17 11:20:15 +02:00
Daniel García Aubert
da3939239f Fix test assertions 2018-04-17 11:10:34 +02:00
Simon Martín
adefbb3365 query with template string 2018-04-17 11:05:37 +02:00
Daniel García Aubert
7012c6e77a Test: Let the OS to choose a random free port to make the tiler listen at it 2018-04-17 10:44:44 +02:00
Raul Marin
ad4cd2067b JShint fix 2018-04-17 10:39:39 +02:00
Raul Marin
8d6a406779 Merge remote-tracking branch 'carto/master' into mvt-invalid-props 2018-04-17 10:25:05 +02:00
Daniel García Aubert
d5c591317b Add coordinates validation to specific endpoints 2018-04-16 18:55:42 +02:00
Daniel García Aubert
817afb13d1 Use mocha hooks to create server just before perform the test 2018-04-16 16:16:23 +02:00
Daniel García Aubert
98f29f945b Create application server inside of describes instead of at module level 2018-04-16 14:09:24 +02:00
Eneko Lakasta
35459b7332
Merge pull request #938 from CartoDB/named-map-auth-tests
Named map auth tests
2018-04-13 12:56:49 +02:00
Daniel García Aubert
89cc9ad27d Merge branch 'master' into regression-test-named-map-dataview-filter 2018-04-12 20:53:27 +02:00
Daniel García Aubert
d8a5dc586d Add test to check dataview filters when instantiating a named map 2018-04-12 19:58:33 +02:00
Daniel García Aubert
1df7df21d5 Revert removed line 2018-04-12 18:31:22 +02:00
Daniel García Aubert
53a40de2e7 Use another table 2018-04-12 18:24:00 +02:00
Eneko Lakasta
940cafacac add newline add EOF 2018-04-12 17:51:33 +02:00
Eneko Lakasta
d1ba4a1759 remove unnecessary test 2018-04-12 17:41:07 +02:00
Daniel García Aubert
6437e2ec67 Add test to check regression when cache buster during instantiation is not updated 2018-04-12 16:32:44 +02:00
Eneko Lakasta
31e3b9953f add named maps GET auth tests 2018-04-12 16:22:56 +02:00
Eneko Lakasta
f5bdb8b15b add named maps Update auth tests 2018-04-12 16:03:02 +02:00
Eneko Lakasta
fbcf312071 add named maps Delete auth tests 2018-04-12 14:46:08 +02:00
Eneko Lakasta
9a7a8a3243 add named maps Create auth tests 2018-04-12 12:43:41 +02:00
Simon Martín
fc36950c1d fix errored value in test 2018-04-12 11:27:31 +02:00
Simon Martín
b4ca44f096 Merge branch 'mvt-invalid-props' of github.com:CartoDB/Windshaft-cartodb into mvt-invalid-props 2018-04-12 10:46:45 +02:00
Simon Martín
4978dd86ac simply cases of mvt property type changes 2018-04-12 10:46:21 +02:00
Raul Ochoa
4d631d1b6a Merge branch 'master' into mvt-invalid-props 2018-04-11 14:08:29 +00:00
Raul Ochoa
2d2629c088 improve description for suite and test 2018-04-11 14:08:18 +00:00
Raul Ochoa
67411e32ff Validate property with strict check and use full table
It seems related to using the full table. The geometry column is a
simplified to reduce the file size, it uses the envelope of the original
geometries.
2018-04-11 11:40:55 +00:00
Daniel García Aubert
e06d3200c3 Use a better API to define public routes 2018-04-11 12:33:07 +02:00
Eneko Lakasta
9a3eb3e0fd add named maps Listing auth tests 2018-04-11 12:26:09 +02:00
Raul Ochoa
a7c96acc81 Run all tests 2018-04-11 10:13:24 +00:00
Raul Ochoa
f2ab33b498 Add regression test for invalid MVT properties 2018-04-11 10:03:06 +00:00
Raul Ochoa
6c8b3d2f8f Merge branch 'master' into regression-mvt-postgis-agg-column-name 2018-04-11 08:34:28 +00:00
Daniel García Aubert
c0943a7c58 Use config to define base path for express routers 2018-04-10 20:26:36 +02:00
Daniel García Aubert
ac615b4a25 Merge branch 'separate-routers' into improve-folder-structure 2018-04-10 16:15:49 +02:00
Daniel García Aubert
bc45b50290 Merge branch 'separate-app-and-controllers-creation' into separate-routers 2018-04-10 15:59:05 +02:00
Daniel García Aubert
aa3fb4807b Merge branch 'master' into separate-app-and-controllers-creation 2018-04-10 15:25:36 +02:00
Daniel García Aubert
d1a4057a8d Rename user limits api by user limits backend 2018-04-10 10:16:07 +02:00
Daniel García Aubert
ba36a47228 Rename overviews metadata api by overviews metadata backend 2018-04-09 19:47:43 +02:00
Daniel García Aubert
e0d8dc0334 Rename filter stats api by filter stats backend 2018-04-09 18:56:01 +02:00
Daniel García Aubert
8dec4814a9 Rename AuthAppi by AuthBackend 2018-04-09 18:08:56 +02:00
Daniel García Aubert
6167562758 Meet application logic and folder struture 2018-04-09 16:18:30 +02:00
Daniel García Aubert
7e68f5270d Move application middlewares to routers folder 2018-04-06 18:20:33 +02:00
Daniel García Aubert
25aa967146 Forbid access to named map admin resources for everyone but master 2018-04-06 15:26:11 +02:00
Daniel García Aubert
61fc15cec0 Add comment to indicate deprecated paths 2018-04-06 11:13:34 +02:00
Javier Goizueta
9818d8bb6c Merge branch 'master' into cartovl-cartodb_id 2018-04-05 16:02:03 +02:00
Javier Goizueta
f7fad736c3 Add test for uniqueness of aggregated cartodb_id 2018-04-05 16:01:29 +02:00
Javier Goizueta
3d36802686 Tests for columns present in aggregation MVTs 2018-04-04 16:58:11 +02:00
Javier Goizueta
dc706aeb43 Fix bug with dimension aliases
The point-sample aggregation query failed if dimensions had alias different from the base columns
2018-04-04 16:29:40 +02:00
Javier Goizueta
fefb0b23af Merge branch 'master' into cartogl 2018-04-04 12:21:43 +02:00
Daniel García Aubert
f1e421db05 Create an api router isolated from heath checks 2018-04-03 19:08:56 +02:00
Daniel García Aubert
b6989ac82a Create a controllers factory where all collaborators are created and controllers are mounted afterwards 2018-04-02 19:02:31 +02:00
Daniel García Aubert
04b65c7c0d Please jshint 2018-03-28 14:21:20 +02:00
Daniel García Aubert
d8d681e8bc Create separated controllers (named & anonymous) for map controller 2018-03-28 12:39:39 +02:00
Daniel García Aubert
5f906e54e4 Merge branch 'master' into 903-locals-refactor 2018-03-27 15:44:54 +02:00
Daniel
f2a7953d9d
Merge pull request #915 from CartoDB/unify-headers-middlewared
Unify headers middlewares
2018-03-27 12:38:23 +02:00
Raul Ochoa
18d3da66f3 Merge branch 'master' into regression-mvt-postgis-agg-column-name 2018-03-26 16:52:57 +00:00
Raul Ochoa
61dd92129a
Merge pull request #919 from CartoDB/rediscell-macosx
Fix test environment in Mac OS X re:redis-cell
2018-03-26 18:48:18 +02:00
Raul Ochoa
489c0f3108 Going red: regression with aggregations and MVT Postgis backend 2018-03-26 16:44:31 +00:00
Raul Ochoa
f4d7148f66 Include shared objects for both, mac and linux, OS 2018-03-26 17:52:32 +02:00
Daniel García Aubert
5bc5c0ae86 Remove locals middleware 2018-03-23 16:53:00 +01:00
Simon Martín
d28c915635 jshint happy 2018-03-23 15:57:30 +01:00
Simon Martín
f19eeff899 returning error mvt on rate limit 2018-03-23 13:30:47 +01:00
Simon Martín
1ce908177e correct error message in rate limit tests 2018-03-23 11:47:28 +01:00
Simon Martín
fb784d6a91 removing retry after when no necessary 2018-03-23 10:23:57 +01:00
Daniel
771eaf97c8
Merge pull request #909 from CartoDB/spread-prepare-context-middleware
Spread `prepareContext` middleware
2018-03-22 10:48:37 +01:00
Javier Goizueta
6ada8ba6a2 Implement aggregation filters 2018-03-21 17:01:32 +01:00
Daniel García Aubert
72c4a7abd6 Extract cache control header middleware 2018-03-21 16:38:37 +01:00
Raul Marin
0906ae3c93 PG11: Modify regex match to accept pg11 errors 2018-03-20 11:34:30 +01:00
Daniel García Aubert
f8d1e159f4 Please jshint 2018-03-20 11:09:05 +01:00
Daniel García Aubert
df999e040c Merge branch 'spread-prepare-context-middleware' into unify-middlewares 2018-03-20 11:06:31 +01:00
Daniel García Aubert
2e13bc42a1 Merge branch 'master' into spread-prepare-context-middleware 2018-03-20 11:01:13 +01:00
Daniel García Aubert
bb170ee208 Please, jshint 2018-03-19 19:27:38 +01:00
Daniel García Aubert
d463d35906 Remove mocha filter 2018-03-19 14:56:20 +01:00
Daniel García Aubert
5cde325d9a Fix ported test related to cache_buster from layergroup token 2018-03-19 13:51:03 +01:00
Daniel García Aubert
b038763b7b Fix skipped test, port is configured via app configuration. It's no longer configurable via query-params 2018-03-19 12:48:52 +01:00
Simon Martín
a830eb4ea0 Merge branch 'master' into rateLimits 2018-03-19 11:25:13 +01:00
Daniel García Aubert
73397ab500 Typo 2018-03-16 20:04:39 +01:00
Daniel García Aubert
a7f6eafd5c Remove unused porperties from ported server options 2018-03-16 20:04:29 +01:00
Daniel García Aubert
ed9083de24 Remove req2params middleware from ported server options 2018-03-16 20:02:18 +01:00
Daniel García Aubert
a2fa92abf1 Fix ported test ny adding host header to the request 2018-03-16 19:58:29 +01:00
Daniel García Aubert
fa1e1fd779 Fix ported test by adding host header to the requests 2018-03-16 19:56:34 +01:00
Daniel García Aubert
adde66bc57 Fix more ported test 2018-03-16 18:59:07 +01:00
Daniel García Aubert
db08fc3da2 Remove meaningless test 2018-03-16 18:58:42 +01:00
Daniel García Aubert
97e603b215 Fix ported test 2018-03-16 18:33:47 +01:00
Daniel García Aubert
29936d76b1 Fix ported test by adding host header to request 2018-03-16 18:18:06 +01:00
Daniel García Aubert
3f88aaae64 Fix ported test by adding host header to requests 2018-03-16 18:15:37 +01:00
Daniel García Aubert
fccf46c67d Add host header to test-client (ported) 2018-03-16 18:06:31 +01:00
Daniel García Aubert
970aca1c9d Add host header to test_client (ported) 2018-03-16 17:55:04 +01:00
Daniel García Aubert
5e494f0982 Add host headers to attributes test (ported) 2018-03-16 17:51:48 +01:00
Daniel García Aubert
95d694f6c5 Fix unit test 2018-03-16 16:29:00 +01:00
Daniel García Aubert
7ff7b0c2d1 Extract rest of the middlewares from prepare contex 2018-03-15 19:38:11 +01:00
Daniel García Aubert
30dab7df9f Extract authorize middeware form prepareContext 2018-03-15 18:48:29 +01:00
Daniel García Aubert
afff06c7e6 Extract db-conn-setup middleware for prepare-context 2018-03-15 15:33:20 +01:00
Rafa de la Torre
de1aaf3808 Update image because of new mapnik cache 2018-03-15 09:55:07 +01:00
Simon Martín
cbfeb0158e adding type and subtype to rate limit error 2018-03-14 17:27:59 +01:00
Simon Martín
bbedc5f41b Updating headers on tests 2018-03-14 12:15:07 +01:00
Simon Martín
0e43c54214 Merge branch 'master' into rateLimits 2018-03-13 18:09:44 +01:00
Eneko Lakasta
5ad1e1b645 merge master 2018-03-12 11:52:38 +01:00
Eneko Lakasta
f9cbb3aac8 use assert.equal instead of assert.ok 2018-03-07 10:51:17 +01:00
Eneko Lakasta
0185cdf785 please jshint 2018-03-06 15:34:29 +01:00
Eneko Lakasta
8d22ca66ba fix tests 2018-03-06 15:26:35 +01:00
Eneko Lakasta
b0eacb2a79 add vary header to honor authorization header when caching 2018-03-06 12:46:38 +01:00
Simon Martín
31a554d94f updating tests to use cartodb-redis 2018-03-03 14:46:58 +01:00
Simon Martín
a2bf235553 Merge branch 'master' into rateLimits 2018-03-02 21:21:10 +01:00
Simon Martín
9c27447b17 refactoring rate limit tests 2018-03-02 20:52:06 +01:00