From fa9bad0f95e8c7d6752e5439b6571d93a1b39efe Mon Sep 17 00:00:00 2001 From: Saksham Gupta Date: Tue, 22 Oct 2024 17:38:49 +0530 Subject: [PATCH] change _allowScriptAccess in tests to be function --- test/integration/sanity/variable-changes.test.js | 2 +- test/integration/sanity/vaultSecrets.test.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/sanity/variable-changes.test.js b/test/integration/sanity/variable-changes.test.js index f7488512a..7aaa720ef 100644 --- a/test/integration/sanity/variable-changes.test.js +++ b/test/integration/sanity/variable-changes.test.js @@ -9,7 +9,7 @@ describe('variable changes', function () { requester: { followRedirects: false }, vaultSecrets: { id: 'vault', - _allowScriptAccess: true, + _allowScriptAccess: function () { return true; }, values: [ { key: 'vault:key5', value: 'vault-value-5', enabled: true }, { key: 'vault:key6', value: 'vault-value-6', enabled: true } diff --git a/test/integration/sanity/vaultSecrets.test.js b/test/integration/sanity/vaultSecrets.test.js index 1a51e96a4..a4181dbe8 100644 --- a/test/integration/sanity/vaultSecrets.test.js +++ b/test/integration/sanity/vaultSecrets.test.js @@ -619,7 +619,7 @@ describe('vaultSecrets', function () { vaultSecrets: { id: 'vault', prefix: 'vault:', - _allowScriptAccess: true, + _allowScriptAccess: function () { return true; }, values: [ { key: 'vault:var1', @@ -714,7 +714,7 @@ describe('vaultSecrets', function () { vaultSecrets: { id: 'vault', prefix: 'vault:', - _allowScriptAccess: true, + _allowScriptAccess: function () { return true; }, values: [ { key: 'vault:var1', @@ -766,7 +766,7 @@ describe('vaultSecrets', function () { vaultSecrets: { id: 'vault', prefix: 'vault:', - _allowScriptAccess: true, + _allowScriptAccess: function () { return true; }, values: [ { key: 'vault:var1', @@ -819,7 +819,7 @@ describe('vaultSecrets', function () { vaultSecrets: { id: 'vault', prefix: 'vault:', - _allowScriptAccess: true, + _allowScriptAccess: function () { return true; }, values: [ { key: 'vault:var1', @@ -876,7 +876,7 @@ describe('vaultSecrets', function () { vaultSecrets: { id: 'vault', prefix: 'vault:', - _allowScriptAccess: true, + _allowScriptAccess: function () { return true; }, values: [ { key: 'vault:var1',