Daniel García Aubert
cc24228511
Fix eslint issues
2019-11-06 13:56:59 +01:00
Daniel García Aubert
8fbe8f9f2a
Remove unused vars
2019-10-25 10:58:00 +02:00
Daniel García Aubert
575fe8e350
Remove unnecessary escape usage
2019-10-24 19:18:47 +02:00
Daniel García Aubert
d5218a86f6
Enforce callback error handling
2019-10-24 18:38:37 +02:00
Daniel García Aubert
ad4a1ada45
Do not use string concatenation when using __dirname and __filename
2019-10-22 18:22:33 +02:00
Daniel García Aubert
7a1d2ca205
Avoid calling Object.prototype methods directly on object instances
2019-10-21 23:33:27 +02:00
Daniel García Aubert
d89e785440
Stop using deprecated Buffer constructor
2019-10-21 20:05:51 +02:00
Daniel García Aubert
2423b5a4c4
Replace assert.deepEqual() by assert.deepStrictEqual()
2019-10-21 19:52:51 +02:00
Daniel García Aubert
1bee877b24
Replace assert.equal() by assert.strictEqual()
2019-10-21 19:41:03 +02:00
Daniel García Aubert
4d70ac0894
Apply automatic eslint fixes
2019-10-21 19:07:24 +02:00
Daniel García Aubert
73e1659378
Add suffix '-test' to every test-suite file
2019-10-07 11:16:48 +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
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