Adds user param to params whitelist and uses localhost user for tests
This commit is contained in:
parent
2f44dfe1da
commit
9ba53dc4cf
@ -18,6 +18,7 @@ if ( _.isUndefined(global.environment.sqlapi.domain) ) {
|
|||||||
|
|
||||||
// Whitelist query parameters and attach format
|
// Whitelist query parameters and attach format
|
||||||
var REQUEST_QUERY_PARAMS_WHITELIST = [
|
var REQUEST_QUERY_PARAMS_WHITELIST = [
|
||||||
|
'user',
|
||||||
'sql',
|
'sql',
|
||||||
'geom_type',
|
'geom_type',
|
||||||
'cache_buster',
|
'cache_buster',
|
||||||
|
@ -22,10 +22,11 @@ serverOptions = ServerOptions();
|
|||||||
var server = new CartodbWindshaft(serverOptions);
|
var server = new CartodbWindshaft(serverOptions);
|
||||||
server.setMaxListeners(0);
|
server.setMaxListeners(0);
|
||||||
|
|
||||||
['/tiles/layergroup', '/u/rambo/tiles/layergroup'].forEach(function(layergroup_url) {
|
['/tiles/layergroup', '/u/localhost/tiles/layergroup'].forEach(function(layergroup_url) {
|
||||||
[true, false].forEach(function(cdbQueryTablesFromPostgresEnabledValue) {
|
[true, false].forEach(function(cdbQueryTablesFromPostgresEnabledValue) {
|
||||||
|
|
||||||
suite('multilayer:postgres=' + cdbQueryTablesFromPostgresEnabledValue + "layergroup_url=" + layergroup_url, function() {
|
var suiteName = 'multilayer:postgres=' + cdbQueryTablesFromPostgresEnabledValue + ";layergroup_url=" + layergroup_url;
|
||||||
|
suite(suiteName, function() {
|
||||||
|
|
||||||
var redis_client = redis.createClient(global.environment.redis.port);
|
var redis_client = redis.createClient(global.environment.redis.port);
|
||||||
var sqlapi_server;
|
var sqlapi_server;
|
||||||
|
Loading…
Reference in New Issue
Block a user