Skip to content

Commit

Permalink
change _allowScriptAccess in tests to be function
Browse files Browse the repository at this point in the history
  • Loading branch information
saksham-postman committed Oct 22, 2024
1 parent 98e7f52 commit fa9bad0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/integration/sanity/variable-changes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
10 changes: 5 additions & 5 deletions test/integration/sanity/vaultSecrets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ describe('vaultSecrets', function () {
vaultSecrets: {
id: 'vault',
prefix: 'vault:',
_allowScriptAccess: true,
_allowScriptAccess: function () { return true; },
values: [
{
key: 'vault:var1',
Expand Down Expand Up @@ -714,7 +714,7 @@ describe('vaultSecrets', function () {
vaultSecrets: {
id: 'vault',
prefix: 'vault:',
_allowScriptAccess: true,
_allowScriptAccess: function () { return true; },
values: [
{
key: 'vault:var1',
Expand Down Expand Up @@ -766,7 +766,7 @@ describe('vaultSecrets', function () {
vaultSecrets: {
id: 'vault',
prefix: 'vault:',
_allowScriptAccess: true,
_allowScriptAccess: function () { return true; },
values: [
{
key: 'vault:var1',
Expand Down Expand Up @@ -819,7 +819,7 @@ describe('vaultSecrets', function () {
vaultSecrets: {
id: 'vault',
prefix: 'vault:',
_allowScriptAccess: true,
_allowScriptAccess: function () { return true; },
values: [
{
key: 'vault:var1',
Expand Down Expand Up @@ -876,7 +876,7 @@ describe('vaultSecrets', function () {
vaultSecrets: {
id: 'vault',
prefix: 'vault:',
_allowScriptAccess: true,
_allowScriptAccess: function () { return true; },
values: [
{
key: 'vault:var1',
Expand Down

0 comments on commit fa9bad0

Please sign in to comment.