adding env var (#14958)

This commit is contained in:
akshya96 2022-04-07 12:15:05 -07:00 committed by GitHub
parent 23a3f950e4
commit 5e0ed27b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import (
"strings"
"testing"
"github.com/hashicorp/vault/sdk/helper/consts"
"github.com/hashicorp/vault/vault/diagnose"
"github.com/mitchellh/cli"
)
@ -478,7 +479,7 @@ func TestOperatorDiagnoseCommand_Run(t *testing.T) {
t.Parallel()
client, closer := testVaultServer(t)
defer closer()
os.Setenv(consts.VaultDisableFilePermissionsCheckEnv, "true")
cmd := testOperatorDiagnoseCommand(t)
cmd.client = client