Daniel García Aubert
8fe0112568
Rename overviews_query_rewriter -> overviews-query-rewriter
2019-10-07 10:06:01 +02:00
Daniel García Aubert
281a079a62
Simplify folder structure
2019-10-07 09:40:50 +02:00
Daniel García Aubert
3220e3de31
Remove old api configuration paths
2019-10-01 19:34:03 +02:00
Daniel García Aubert
945c122dda
Update windshaft devel branch
2019-07-29 19:14:27 +02:00
Simon Martín
644b4232ca
adding Authorization to Access-Control-Allow-Headers
2019-01-10 16:56:07 +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
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 Marin
cd31f998dd
Tests: Use "UNION ALL" instead of "UNION" to improve performance
2018-07-17 12:43:50 +02:00
Raul Marin
8dcab568bd
Tests: Adapt torque tests to work with PROJ 5.1
2018-07-11 12:33:02 +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
Daniel García Aubert
976ee35a35
Use new routes configuration schema in ported test
2018-05-09 15:24:33 +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
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
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
e06d3200c3
Use a better API to define public routes
2018-04-11 12:33:07 +02: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
61fc15cec0
Add comment to indicate deprecated paths
2018-04-06 11:13:34 +02:00
Daniel García Aubert
f8d1e159f4
Please jshint
2018-03-20 11:09:05 +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
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
Raul Marin
ad2f4573f8
Update Windshaft to 4.5.4
2018-03-09 11:44:42 +01:00
Raul Marin
f9fe3ace37
Add mapnik metrics option
2018-02-06 16:07:22 +01:00
Raul Marin
0fdab08600
Torque boundaries tests: Sort objects before comparison
...
Order is not guaranteed by torque and changed behaviour from PG 9.5 to 10
2018-01-15 16:44:10 +01:00
Daniel García Aubert
1edf684475
Fix test
2017-12-13 20:04:06 +01:00
Daniel García Aubert
6fe73862f3
Create a MapConfig's subclass to delegate aggregation
2017-12-13 11:42:51 +01:00
Daniel García Aubert
66b41a6ae7
Now .getLayergroup() in test client accepts params to perform custom instantiations
2017-12-05 12:09:31 +01:00
Daniel García Aubert
f9ba3c41d3
Create new middlewares to init profiling and another to check JSON content-type
2017-11-05 18:55:23 +01:00
Daniel García Aubert
3f49743cd0
Remove BaseController dependency and remove unused code
2017-10-30 19:30:03 +01:00
Simon Martín
21720267cf
from req.context to res.locals
2017-10-03 17:47:57 +02:00
Simon Martín
f9d87bc40f
res.locals fixing controllers
2017-10-02 12:07:35 +02:00
Simon
178b9e8563
moving layergroup-token middleware to middlewarify style
2017-09-27 16:32:49 +02:00
Simon
ac474cb253
Merge branch 'middlewarify' into layergroup-token-param
2017-09-27 16:31:08 +02:00
Raul Ochoa
2eb1c0f3e0
Remove unused import
2017-09-22 12:59:14 +00:00