Skip to content

Commit

Permalink
fix bad tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manherna committed Nov 21, 2024
1 parent c980604 commit fc186bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/helmify/values_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ func TestValues_Add(t *testing.T) {
func TestValues_AddSecret(t *testing.T) {
t.Run("add base64 enc secret", func(t *testing.T) {
testVal := Values{}
res, err := testVal.AddSecret(true, true, "a", "b")
res, err := testVal.AddSecret(true, false, "a", "b")
assert.NoError(t, err)
assert.Contains(t, res, "b64enc")
})
t.Run("add not encoded secret", func(t *testing.T) {
testVal := Values{}
res, err := testVal.AddSecret(true, true, "a", "b")
res, err := testVal.AddSecret(false, false, "a", "b")
assert.NoError(t, err)
assert.NotContains(t, res, "b64enc")
})
Expand Down

0 comments on commit fc186bf

Please sign in to comment.