mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
reformat with gofumpt
This commit is contained in:
parent
e9ff03f0e4
commit
99522a30d6
2 changed files with 6 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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{},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue