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
f8d1e159f4
Please jshint
2018-03-20 11:09:05 +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
Raul Ochoa
22b7828725
Layergroup Token parsing as middleware
...
Reuses LayergroupToken model from tests.
2017-09-22 12:05:40 +00:00
Daniel García Aubert
429f070372
Pass node's response object to req2params
2017-09-21 12:22:33 +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
Raul Ochoa
882aeacac2
Rewrite test to take advantage of changes in assert.response/TestClient
...
This should avoid the issue of preventing the whole suite to halt, as
in https://travis-ci.org/CartoDB/Windshaft-cartodb/builds/236337027 .
2017-05-26 13:13:19 +02:00
Raul Ochoa
0a3d1fbdf9
Upgrade jshint and fix test
2017-05-18 17:39:56 +02:00
Raul Ochoa
1951e79962
Make assertions compatible
2017-03-07 13:27:13 +01:00
Daniel García Aubert
bc2441e66a
Use a valid port
2016-12-19 16:17:41 +01:00
Daniel García Aubert
7c1792bbd2
Test regression and unused directives only for mapnik ~2.3.x
2016-12-19 16:16:50 +01:00
Daniel García Aubert
2fdbc3e61c
Fix error message in assertion
2016-12-19 16:15:07 +01:00
Daniel García Aubert
49b46a6096
Use address column in styles
2016-11-05 11:43:39 +01:00
Daniel García Aubert
d04787a60c
Fix test
2016-10-31 22:48:09 +01:00
Daniel García Aubert
016adb64ef
Fix error context, replaced turbo-carto
error type by layer
type. Context is no longer used, custom property for each type will be used instead.
2016-06-26 18:43:04 +02:00
Daniel García Aubert
d9297d54de
made error_with_context non optional and adapted test's assertion
2016-06-13 16:14:01 +02:00
Raul Ochoa
c372d69e98
LayergroupToken only makes sense at testing environment
2016-05-23 13:01:23 +02:00
Raul Ochoa
495fdaf8ec
Rename assert.imageEqualsFile
2016-02-22 16:36:06 +01:00
Raul Ochoa
ae9daed43f
Better naming for imageBuffersAreSimilar
2016-02-22 16:02:15 +01:00
Javier Goizueta
5b50e784cd
Merge branch 'master' into overviews-work
2016-02-09 17:14:08 +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