Fix nightly tests and debug (#14970)

* adding env var

* add fixes

* fixing debug

* removing umask from tests
This commit is contained in:
akshya96
2022-04-11 17:38:28 -07:00
committed by GitHub
parent 361b213e6c
commit 39440d518e
4 changed files with 14 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ import (
"testing"
"time"
"github.com/hashicorp/vault/sdk/helper/consts"
"github.com/hashicorp/vault/sdk/physical"
physInmem "github.com/hashicorp/vault/sdk/physical/inmem"
"github.com/mitchellh/cli"
@@ -115,7 +116,7 @@ func TestServer_ReloadListener(t *testing.T) {
defer os.RemoveAll(td)
wg := &sync.WaitGroup{}
os.Setenv(consts.VaultDisableFilePermissionsCheckEnv, "true")
// Setup initial certs
inBytes, _ := ioutil.ReadFile(wd + "reload_foo.pem")
ioutil.WriteFile(td+"/reload_cert.pem", inBytes, 0o777)