adding env var (#14958)

This commit is contained in:
akshya96 2022-04-07 12:15:05 -07:00 committed by GitHub
parent e7b5b2a48d
commit c22a584a40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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