Run postgresql/sql-api dependant tests against two implementations
This time for real.
This commit is contained in:
parent
151968ae13
commit
e1e925bd9e
@ -24,8 +24,6 @@ server.setMaxListeners(0);
|
|||||||
|
|
||||||
[true, false].forEach(function(cdbQueryTablesFromPostgresEnabledValue) {
|
[true, false].forEach(function(cdbQueryTablesFromPostgresEnabledValue) {
|
||||||
|
|
||||||
global.environment.enabledFeatures = {cdbQueryTablesFromPostgres: cdbQueryTablesFromPostgresEnabledValue};
|
|
||||||
|
|
||||||
suite('multilayer:postgres=' + cdbQueryTablesFromPostgresEnabledValue, function() {
|
suite('multilayer:postgres=' + cdbQueryTablesFromPostgresEnabledValue, function() {
|
||||||
|
|
||||||
var redis_client = redis.createClient(global.environment.redis.port);
|
var redis_client = redis.createClient(global.environment.redis.port);
|
||||||
@ -38,6 +36,7 @@ suite('multilayer:postgres=' + cdbQueryTablesFromPostgresEnabledValue, function(
|
|||||||
var test_database = test_user + '_db';
|
var test_database = test_user + '_db';
|
||||||
|
|
||||||
suiteSetup(function(done){
|
suiteSetup(function(done){
|
||||||
|
global.environment.enabledFeatures = { cdbQueryTablesFromPostgres: cdbQueryTablesFromPostgresEnabledValue };
|
||||||
sqlapi_server = new SQLAPIEmu(global.environment.sqlapi.port, done);
|
sqlapi_server = new SQLAPIEmu(global.environment.sqlapi.port, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -20,10 +20,7 @@ server.setMaxListeners(0);
|
|||||||
|
|
||||||
[true, false].forEach(function(cdbQueryTablesFromPostgresEnabledValue) {
|
[true, false].forEach(function(cdbQueryTablesFromPostgresEnabledValue) {
|
||||||
|
|
||||||
global.environment.enabledFeatures = {cdbQueryTablesFromPostgres: cdbQueryTablesFromPostgresEnabledValue};
|
suite('server:postgres=' + cdbQueryTablesFromPostgresEnabledValue, function() {
|
||||||
|
|
||||||
suite('multilayer:postgres=' + cdbQueryTablesFromPostgresEnabledValue, 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;
|
||||||
@ -49,6 +46,7 @@ suite('multilayer:postgres=' + cdbQueryTablesFromPostgresEnabledValue, function(
|
|||||||
var test_style_black_210 = "#test_table{marker-fill:black;marker-line-color:red;marker-width:20}";
|
var test_style_black_210 = "#test_table{marker-fill:black;marker-line-color:red;marker-width:20}";
|
||||||
|
|
||||||
suiteSetup(function(done){
|
suiteSetup(function(done){
|
||||||
|
global.environment.enabledFeatures = { cdbQueryTablesFromPostgres: cdbQueryTablesFromPostgresEnabledValue };
|
||||||
sqlapi_server = new SQLAPIEmu(global.environment.sqlapi.port, done);
|
sqlapi_server = new SQLAPIEmu(global.environment.sqlapi.port, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -27,9 +27,8 @@ server.setMaxListeners(0);
|
|||||||
|
|
||||||
[true, false].forEach(function(cdbQueryTablesFromPostgresEnabledValue) {
|
[true, false].forEach(function(cdbQueryTablesFromPostgresEnabledValue) {
|
||||||
|
|
||||||
global.environment.enabledFeatures = {cdbQueryTablesFromPostgres: cdbQueryTablesFromPostgresEnabledValue};
|
|
||||||
|
|
||||||
suite('template_api:postgres=' + cdbQueryTablesFromPostgresEnabledValue, function() {
|
suite('template_api:postgres=' + cdbQueryTablesFromPostgresEnabledValue, function() {
|
||||||
|
serverOptions.channelCache = {};
|
||||||
|
|
||||||
var redis_client = redis.createClient(global.environment.redis.port);
|
var redis_client = redis.createClient(global.environment.redis.port);
|
||||||
var sqlapi_server;
|
var sqlapi_server;
|
||||||
@ -37,6 +36,7 @@ suite('template_api:postgres=' + cdbQueryTablesFromPostgresEnabledValue, functio
|
|||||||
var expected_last_updated = new Date(expected_last_updated_epoch).toISOString();
|
var expected_last_updated = new Date(expected_last_updated_epoch).toISOString();
|
||||||
|
|
||||||
suiteSetup(function(done){
|
suiteSetup(function(done){
|
||||||
|
global.environment.enabledFeatures = { cdbQueryTablesFromPostgres: cdbQueryTablesFromPostgresEnabledValue };
|
||||||
sqlapi_server = new SQLAPIEmu(global.environment.sqlapi.port, done);
|
sqlapi_server = new SQLAPIEmu(global.environment.sqlapi.port, done);
|
||||||
// TODO: check redis is clean ?
|
// TODO: check redis is clean ?
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user