mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Run a more strict formatter over the code (#11312)
* Update tooling * Run gofumpt * go mod vendor
This commit is contained in:
@@ -111,12 +111,12 @@ func TestServer_ReloadListener(t *testing.T) {
|
||||
|
||||
// Setup initial certs
|
||||
inBytes, _ := ioutil.ReadFile(wd + "reload_foo.pem")
|
||||
ioutil.WriteFile(td+"/reload_cert.pem", inBytes, 0777)
|
||||
ioutil.WriteFile(td+"/reload_cert.pem", inBytes, 0o777)
|
||||
inBytes, _ = ioutil.ReadFile(wd + "reload_foo.key")
|
||||
ioutil.WriteFile(td+"/reload_key.pem", inBytes, 0777)
|
||||
ioutil.WriteFile(td+"/reload_key.pem", inBytes, 0o777)
|
||||
|
||||
relhcl := strings.Replace(reloadHCL, "TMPDIR", td, -1)
|
||||
ioutil.WriteFile(td+"/reload.hcl", []byte(relhcl), 0777)
|
||||
ioutil.WriteFile(td+"/reload.hcl", []byte(relhcl), 0o777)
|
||||
|
||||
inBytes, _ = ioutil.ReadFile(wd + "reload_ca.pem")
|
||||
certPool := x509.NewCertPool()
|
||||
@@ -168,10 +168,10 @@ func TestServer_ReloadListener(t *testing.T) {
|
||||
|
||||
relhcl = strings.Replace(reloadHCL, "TMPDIR", td, -1)
|
||||
inBytes, _ = ioutil.ReadFile(wd + "reload_bar.pem")
|
||||
ioutil.WriteFile(td+"/reload_cert.pem", inBytes, 0777)
|
||||
ioutil.WriteFile(td+"/reload_cert.pem", inBytes, 0o777)
|
||||
inBytes, _ = ioutil.ReadFile(wd + "reload_bar.key")
|
||||
ioutil.WriteFile(td+"/reload_key.pem", inBytes, 0777)
|
||||
ioutil.WriteFile(td+"/reload.hcl", []byte(relhcl), 0777)
|
||||
ioutil.WriteFile(td+"/reload_key.pem", inBytes, 0o777)
|
||||
ioutil.WriteFile(td+"/reload.hcl", []byte(relhcl), 0o777)
|
||||
|
||||
cmd.SighupCh <- struct{}{}
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user