reformat with gofumpt

This commit is contained in:
vdbewout 2023-11-12 19:47:12 +01:00
parent e9ff03f0e4
commit 99522a30d6
No known key found for this signature in database
GPG key ID: F4756403592D3E9F
2 changed files with 6 additions and 6 deletions

View file

@ -502,7 +502,7 @@ func (app *appContext) validateSecret(secret *secret) error {
return fmt.Errorf("Unsupported format %s for secret %s", secret.Format, secret.Name)
}
files := []secretFile {};
files := []secretFile{}
for _, sopsFile := range secret.SopsFiles {
file, ok := app.secretFiles[sopsFile]
if !ok {

View file

@ -104,7 +104,7 @@ func testGPG(t *testing.T) {
Key: "test_key",
Owner: "nobody",
Group: "nogroup",
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
Path: path.Join(testdir.path, "test-target"),
Mode: "0400",
RestartUnits: []string{"affected-service"},
@ -219,7 +219,7 @@ func testSSHKey(t *testing.T) {
Key: "test_key",
Owner: "nobody",
Group: "nogroup",
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
Path: target,
Mode: "0400",
RestartUnits: []string{"affected-service"},
@ -252,7 +252,7 @@ func TestAge(t *testing.T) {
Key: "test_key",
Owner: "nobody",
Group: "nogroup",
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
Path: target,
Mode: "0400",
RestartUnits: []string{"affected-service"},
@ -285,7 +285,7 @@ func TestAgeWithSSH(t *testing.T) {
Key: "test_key",
Owner: "nobody",
Group: "nogroup",
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
Path: target,
Mode: "0400",
RestartUnits: []string{"affected-service"},
@ -319,7 +319,7 @@ func TestValidateManifest(t *testing.T) {
Key: "test_key",
Owner: "nobody",
Group: "nogroup",
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
SopsFiles: []string{path.Join(assets, "secrets.yaml")},
Path: path.Join(testdir.path, "test-target"),
Mode: "0400",
RestartUnits: []string{},