|
|
@ -19,6 +19,7 @@ import (
|
|
|
|
"runtime"
|
|
|
|
"runtime"
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"helm.sh/helm/v3/internal/experimental/registry"
|
|
|
|
"helm.sh/helm/v3/pkg/chart"
|
|
|
|
"helm.sh/helm/v3/pkg/chart"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -139,7 +140,8 @@ func TestResolve(t *testing.T) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
repoNames := map[string]string{"alpine": "kubernetes-charts", "redis": "kubernetes-charts"}
|
|
|
|
repoNames := map[string]string{"alpine": "kubernetes-charts", "redis": "kubernetes-charts"}
|
|
|
|
r := New("testdata/chartpath", "testdata/repository")
|
|
|
|
registryClient, _ := registry.NewClient()
|
|
|
|
|
|
|
|
r := New("testdata/chartpath", "testdata/repository", registryClient)
|
|
|
|
for _, tt := range tests {
|
|
|
|
for _, tt := range tests {
|
|
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
|
|
t.Run(tt.name, func(t *testing.T) {
|
|
|
|
l, err := r.Resolve(tt.req, repoNames)
|
|
|
|
l, err := r.Resolve(tt.req, repoNames)
|
|
|
|