Daniel García Aubert
d89e785440
Stop using deprecated Buffer constructor
2019-10-21 20:05:51 +02:00
Daniel García Aubert
4d70ac0894
Apply automatic eslint fixes
2019-10-21 19:07:24 +02:00
Daniel García Aubert
f1de1b3b91
Rename test files: stop using underscores, use hyphens instead
2019-10-07 10:44:45 +02:00
Daniel García Aubert
a134ab3012
Rename server_options -> server-options
2019-10-07 10:10:51 +02:00
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
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
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
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
5cde325d9a
Fix ported test related to cache_buster from layergroup token
2018-03-19 13:51:03 +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
adde66bc57
Fix more ported test
2018-03-16 18:59:07 +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
Raul Marin
f9fe3ace37
Add mapnik metrics option
2018-02-06 16:07:22 +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
c372d69e98
LayergroupToken only makes sense at testing environment
2016-05-23 13:01:23 +02: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
Raul Ochoa
1f757a7378
check style
2015-09-25 19:21:20 +02:00
Raul Ochoa
ebbe89cfb8
Ask for specific redis key removal
2015-09-25 19:11:48 +02:00
Raul Ochoa
486b803856
Delete redis keys using test helper
2015-09-25 19:04:59 +02:00
Raul Ochoa
7ee2649feb
Remove redis keys having in mind last updated time
2015-09-17 18:12:45 +02:00
Raul Ochoa
967ef99277
Fix jsonp tests
2015-09-17 02:06:32 +02:00
Raul Ochoa
e32ced107e
Fix all ported tests related to req2params
2015-09-16 18:09:39 +02:00
Raul Ochoa
066aff16f1
Use global for req2params number of request assert
2015-09-16 16:58:08 +02:00
Raul Ochoa
52b60a22fd
Makes all tests to run together
2015-07-15 16:09:43 +02:00
Raul Ochoa
c81048312d
Context with user
2015-07-08 15:34:46 +02:00
Raul Ochoa
7aeb54d53d
Enables multilayer ported tests
2015-07-08 12:59:49 +02:00
Raul Ochoa
d52b65470e
Ports acceptance tests from windshaft
2015-07-07 23:46:58 +02:00