Remove user param
This commit is contained in:
parent
e7c206762d
commit
14d5ee4178
@ -81,11 +81,11 @@ describe('user database timeout limit', function () {
|
|||||||
beforeEach(function (done) {
|
beforeEach(function (done) {
|
||||||
const mapconfig = createMapConfig();
|
const mapconfig = createMapConfig();
|
||||||
this.testClient = new TestClient(mapconfig, 1234);
|
this.testClient = new TestClient(mapconfig, 1234);
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, (err) => {
|
TestClient.setUserDatabaseTimeoutLimit(0, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return done(err);
|
return done(err);
|
||||||
}
|
}
|
||||||
@ -118,11 +118,11 @@ describe('user database timeout limit', function () {
|
|||||||
beforeEach(function (done) {
|
beforeEach(function (done) {
|
||||||
const mapconfig = createMapConfig({ sql: validationPointSleepSql });
|
const mapconfig = createMapConfig({ sql: validationPointSleepSql });
|
||||||
this.testClient = new TestClient(mapconfig, 1234);
|
this.testClient = new TestClient(mapconfig, 1234);
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, (err) => {
|
TestClient.setUserDatabaseTimeoutLimit(0, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return done(err);
|
return done(err);
|
||||||
}
|
}
|
||||||
@ -157,11 +157,11 @@ describe('user database timeout limit', function () {
|
|||||||
describe('fetching raster tiles', function () {
|
describe('fetching raster tiles', function () {
|
||||||
describe('with user\'s timeout of 200 ms', function () {
|
describe('with user\'s timeout of 200 ms', function () {
|
||||||
beforeEach(function (done) {
|
beforeEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, done);
|
TestClient.setUserDatabaseTimeoutLimit(0, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('with onTileErrorStrategy ENABLED', function () {
|
describe('with onTileErrorStrategy ENABLED', function () {
|
||||||
@ -326,11 +326,11 @@ describe('user database timeout limit', function () {
|
|||||||
beforeEach(function (done) {
|
beforeEach(function (done) {
|
||||||
const mapconfig = createMapConfig({ sql: validationPointSleepSql });
|
const mapconfig = createMapConfig({ sql: validationPointSleepSql });
|
||||||
this.testClient = new TestClient(mapconfig, 1234);
|
this.testClient = new TestClient(mapconfig, 1234);
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, (err) => {
|
TestClient.setUserDatabaseTimeoutLimit(0, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return done(err);
|
return done(err);
|
||||||
}
|
}
|
||||||
@ -390,11 +390,11 @@ describe('user database timeout limit', function () {
|
|||||||
|
|
||||||
describe('with user\'s timeout of 200 ms', function () {
|
describe('with user\'s timeout of 200 ms', function () {
|
||||||
beforeEach(function (done) {
|
beforeEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, done);
|
TestClient.setUserDatabaseTimeoutLimit(0, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('"mvt" fails due to statement timeout', function (done) {
|
it('"mvt" fails due to statement timeout', function (done) {
|
||||||
@ -428,11 +428,11 @@ describe('user database timeout limit', function () {
|
|||||||
beforeEach(function (done) {
|
beforeEach(function (done) {
|
||||||
const mapconfig = createMapConfig({ sql: validationPointSleepSql, interactivity: 'val' });
|
const mapconfig = createMapConfig({ sql: validationPointSleepSql, interactivity: 'val' });
|
||||||
this.testClient = new TestClient(mapconfig, 1234);
|
this.testClient = new TestClient(mapconfig, 1234);
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, (err) => {
|
TestClient.setUserDatabaseTimeoutLimit(0, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return done(err);
|
return done(err);
|
||||||
}
|
}
|
||||||
@ -492,11 +492,11 @@ describe('user database timeout limit', function () {
|
|||||||
|
|
||||||
describe('with user\'s timeout of 200 ms', function () {
|
describe('with user\'s timeout of 200 ms', function () {
|
||||||
beforeEach(function (done) {
|
beforeEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, done);
|
TestClient.setUserDatabaseTimeoutLimit(0, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('"grid.json" fails due to statement timeout', function (done) {
|
it('"grid.json" fails due to statement timeout', function (done) {
|
||||||
@ -532,11 +532,11 @@ describe('user database timeout limit', function () {
|
|||||||
cartocss: TestClient.CARTOCSS.TORQUE
|
cartocss: TestClient.CARTOCSS.TORQUE
|
||||||
});
|
});
|
||||||
this.testClient = new TestClient(mapconfig, 1234);
|
this.testClient = new TestClient(mapconfig, 1234);
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, (err) => {
|
TestClient.setUserDatabaseTimeoutLimit(0, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return done(err);
|
return done(err);
|
||||||
}
|
}
|
||||||
@ -599,11 +599,11 @@ describe('user database timeout limit', function () {
|
|||||||
|
|
||||||
describe('with user\'s timeout of 200 ms', function () {
|
describe('with user\'s timeout of 200 ms', function () {
|
||||||
beforeEach(function (done) {
|
beforeEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, done);
|
TestClient.setUserDatabaseTimeoutLimit(0, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('"torque.json" fails due to statement timeout', function (done) {
|
it('"torque.json" fails due to statement timeout', function (done) {
|
||||||
@ -663,11 +663,11 @@ describe('user database timeout limit', function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.testClient = new TestClient(mapconfig, 1234);
|
this.testClient = new TestClient(mapconfig, 1234);
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, (err) => {
|
TestClient.setUserDatabaseTimeoutLimit(0, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return done(err);
|
return done(err);
|
||||||
}
|
}
|
||||||
@ -738,11 +738,11 @@ describe('user database timeout limit', function () {
|
|||||||
|
|
||||||
describe('with user\'s timeout of 200 ms', function () {
|
describe('with user\'s timeout of 200 ms', function () {
|
||||||
beforeEach(function (done) {
|
beforeEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 200, done);
|
TestClient.setUserDatabaseTimeoutLimit(200, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function (done) {
|
afterEach(function (done) {
|
||||||
TestClient.setUserDatabaseTimeoutLimit('localhost', 0, done);
|
TestClient.setUserDatabaseTimeoutLimit(0, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('fails due to statement timeout', function (done) {
|
it('fails due to statement timeout', function (done) {
|
||||||
|
@ -1164,7 +1164,7 @@ TestClient.prototype.setUserRenderTimeoutLimit = function (user, userTimeoutLimi
|
|||||||
helper.configureMetadata('hmset', params, callback);
|
helper.configureMetadata('hmset', params, callback);
|
||||||
};
|
};
|
||||||
|
|
||||||
TestClient.setUserDatabaseTimeoutLimit = function (user, timeoutLimit, callback) {
|
TestClient.setUserDatabaseTimeoutLimit = function (timeoutLimit, callback) {
|
||||||
const dbname = _.template(global.environment.postgres_auth_user, { user_id: 1 }) + '_db';
|
const dbname = _.template(global.environment.postgres_auth_user, { user_id: 1 }) + '_db';
|
||||||
const dbuser = _.template(global.environment.postgres_auth_user, { user_id: 1 })
|
const dbuser = _.template(global.environment.postgres_auth_user, { user_id: 1 })
|
||||||
const pass = _.template(global.environment.postgres_auth_pass, { user_id: 1 })
|
const pass = _.template(global.environment.postgres_auth_pass, { user_id: 1 })
|
||||||
|
Loading…
Reference in New Issue
Block a user