Merge branch 'master' into docker-tests
This commit is contained in:
commit
fabff70e0a
@ -20,7 +20,7 @@ const Validator = {
|
||||
let softValidationResult = true;
|
||||
|
||||
if (!!affectedTables && affectedTables.tables) {
|
||||
if (global.validatePGEntitiesAccess) {
|
||||
if (global.settings.validatePGEntitiesAccess) {
|
||||
hardValidationResult = this.hardValidation(affectedTables.tables);
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ describe('PG entities access validator', function () {
|
||||
|
||||
describe('validatePGEntitiesAccess enabled', function() {
|
||||
before(function(){
|
||||
global.validatePGEntitiesAccess = true;
|
||||
global.settings.validatePGEntitiesAccess = true;
|
||||
});
|
||||
|
||||
forbiddenQueries.forEach(query => {
|
||||
@ -42,7 +42,7 @@ describe('PG entities access validator', function () {
|
||||
|
||||
describe('validatePGEntitiesAccess disabled', function() {
|
||||
before(function(){
|
||||
global.validatePGEntitiesAccess = false;
|
||||
global.settings.validatePGEntitiesAccess = false;
|
||||
});
|
||||
|
||||
forbiddenQueries.forEach(query => {
|
||||
|
@ -73,11 +73,11 @@ const fakeAffectedTablesTopologyKO = [
|
||||
|
||||
describe('pg entities access validator with validatePGEntitiesAccess enabled', function () {
|
||||
before(function() {
|
||||
global.validatePGEntitiesAccess = true;
|
||||
global.settings.validatePGEntitiesAccess = true;
|
||||
});
|
||||
|
||||
after(function() {
|
||||
global.validatePGEntitiesAccess = false;
|
||||
global.settings.validatePGEntitiesAccess = false;
|
||||
});
|
||||
|
||||
it('validate function: bad parameters', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user