Skip to content

Commit

Permalink
Add test to ensure indentation of sequences is retained.
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Zanatta <[email protected]>
  • Loading branch information
AlessandroZanatta committed Jan 9, 2025
1 parent 1919051 commit 8991f6a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/argocd/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,18 @@ func Test_updateKustomizeFile(t *testing.T) {
wantContent: `images:
- name: foo
digest: sha23456
`,
filter: filter,
},
{
name: "indented",
content: `images:
- name: foo
digest: sha12345
`,
wantContent: `images:
- name: foo
digest: sha23456
`,
filter: filter,
},
Expand Down

0 comments on commit 8991f6a

Please sign in to comment.