|
|
@ -21,6 +21,7 @@ import (
|
|
|
|
"reflect"
|
|
|
|
"reflect"
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"helm.sh/helm/v3/internal/test/ensure"
|
|
|
|
"helm.sh/helm/v3/pkg/chart"
|
|
|
|
"helm.sh/helm/v3/pkg/chart"
|
|
|
|
"helm.sh/helm/v3/pkg/chartutil"
|
|
|
|
"helm.sh/helm/v3/pkg/chartutil"
|
|
|
|
"helm.sh/helm/v3/pkg/getter"
|
|
|
|
"helm.sh/helm/v3/pkg/getter"
|
|
|
@ -182,6 +183,7 @@ func TestGetRepoNames(t *testing.T) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func TestUpdateBeforeBuild(t *testing.T) {
|
|
|
|
func TestUpdateBeforeBuild(t *testing.T) {
|
|
|
|
|
|
|
|
ensure.HelmHome(t)
|
|
|
|
// Set up a fake repo
|
|
|
|
// Set up a fake repo
|
|
|
|
srv, err := repotest.NewTempServerWithCleanup(t, "testdata/*.tgz*")
|
|
|
|
srv, err := repotest.NewTempServerWithCleanup(t, "testdata/*.tgz*")
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
@ -326,6 +328,7 @@ func TestUpdateWithNoRepo(t *testing.T) {
|
|
|
|
// Parent chart includes local-subchart 0.1.0 subchart from a fake repository, by default.
|
|
|
|
// Parent chart includes local-subchart 0.1.0 subchart from a fake repository, by default.
|
|
|
|
// If each of these main fields (name, version, repository) is not supplied by dep param, default value will be used.
|
|
|
|
// If each of these main fields (name, version, repository) is not supplied by dep param, default value will be used.
|
|
|
|
func checkBuildWithOptionalFields(t *testing.T, chartName string, dep chart.Dependency) {
|
|
|
|
func checkBuildWithOptionalFields(t *testing.T, chartName string, dep chart.Dependency) {
|
|
|
|
|
|
|
|
ensure.HelmHome(t)
|
|
|
|
// Set up a fake repo
|
|
|
|
// Set up a fake repo
|
|
|
|
srv, err := repotest.NewTempServerWithCleanup(t, "testdata/*.tgz*")
|
|
|
|
srv, err := repotest.NewTempServerWithCleanup(t, "testdata/*.tgz*")
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|