Skip to content

Commit

Permalink
fixup! feat: implement source refs for helm set-file
Browse files Browse the repository at this point in the history
  • Loading branch information
morremeyer committed May 6, 2024
1 parent 837f4df commit aa090e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion reposerver/repository/repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"path"
"path/filepath"
"regexp"
"slices"
"sort"
"strings"
"sync"
Expand Down Expand Up @@ -2246,7 +2247,12 @@ func TestGenerateMultiSourceHelmWithFileParameter(t *testing.T) {
}

assert.NoError(t, err)
assert.Contains(t, res.Manifests[1], string(expectedFileContent), "Value should be provided via file parameters")

// Check that any of the manifests contains the secret
idx := slices.IndexFunc(res.Manifests, func(content string) bool {
return strings.Contains(content, string(expectedFileContent))
})
assert.GreaterOrEqual(t, idx, 0, "No manifest contains the value set with the helm fileParameters")
}

func TestFindResources(t *testing.T) {
Expand Down

0 comments on commit aa090e2

Please sign in to comment.