|
|
@ -23,8 +23,6 @@ import (
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"helm.sh/helm/v3/internal/test/ensure"
|
|
|
|
"helm.sh/helm/v3/internal/test/ensure"
|
|
|
|
"helm.sh/helm/v3/pkg/chart"
|
|
|
|
"helm.sh/helm/v3/pkg/chart"
|
|
|
|
"helm.sh/helm/v3/pkg/chart/loader"
|
|
|
|
"helm.sh/helm/v3/pkg/chart/loader"
|
|
|
@ -194,13 +192,6 @@ func TestSetAppVersion(t *testing.T) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func setFlags(cmd *cobra.Command, flags map[string]string) {
|
|
|
|
|
|
|
|
dest := cmd.Flags()
|
|
|
|
|
|
|
|
for f, v := range flags {
|
|
|
|
|
|
|
|
dest.Set(f, v)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func TestPackageFileCompletion(t *testing.T) {
|
|
|
|
func TestPackageFileCompletion(t *testing.T) {
|
|
|
|
checkFileCompletion(t, "package", true)
|
|
|
|
checkFileCompletion(t, "package", true)
|
|
|
|
checkFileCompletion(t, "package mypath", true) // Multiple paths can be given
|
|
|
|
checkFileCompletion(t, "package mypath", true) // Multiple paths can be given
|
|
|
|