Use inline execution in camshaft instead of a database service stub
This commit is contained in:
@@ -161,7 +161,7 @@ describe('analysis-layers', function() {
|
||||
});
|
||||
});
|
||||
|
||||
it.skip('should fail for non-authenticated requests that has a node other than "source"', function(done) {
|
||||
it('should fail for non-authenticated requests that has a node other than "source"', function(done) {
|
||||
var useCase = useCases[1];
|
||||
|
||||
// No API key here
|
||||
|
||||
@@ -12,29 +12,7 @@ var helper = require('./test_helper');
|
||||
|
||||
var CartodbWindshaft = require('../../lib/cartodb/server');
|
||||
var serverOptions = require('../../lib/cartodb/server_options');
|
||||
|
||||
function createServiceStub(result) {
|
||||
return function(__, callback) {
|
||||
return callback(null, result);
|
||||
};
|
||||
}
|
||||
function AnalysisDatabaseServiceStub(/*dbParams, batchParams*/) {
|
||||
// this.dbParams = dbParams;
|
||||
// this.batchParams = batchParams;
|
||||
}
|
||||
AnalysisDatabaseServiceStub.prototype = {
|
||||
run: createServiceStub({}),
|
||||
getSchema: createServiceStub([]),
|
||||
getColumnNames: createServiceStub([]),
|
||||
getLastUpdatedTimeFromAffectedTables: createServiceStub([]),
|
||||
setUpdatedAtForSources: createServiceStub([]),
|
||||
registerAnalysisInCatalog: createServiceStub([]),
|
||||
queueAnalysisOperations: createServiceStub([]),
|
||||
trackAnalysis: createServiceStub([]),
|
||||
enqueue: createServiceStub({})
|
||||
};
|
||||
serverOptions.analysis.batch.databaseService = AnalysisDatabaseServiceStub;
|
||||
|
||||
serverOptions.analysis.batch.inlineExecution = true;
|
||||
var server = new CartodbWindshaft(serverOptions);
|
||||
|
||||
function TestClient(mapConfig, apiKey) {
|
||||
|
||||
Reference in New Issue
Block a user