From e6fadee7a67bb6b0eaf17db30d7759e564e352fa Mon Sep 17 00:00:00 2001 From: Alex Buchanan Date: Fri, 20 Sep 2024 13:28:15 -0700 Subject: [PATCH] fix test --- internal/cmd/local/local/install_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/cmd/local/local/install_test.go b/internal/cmd/local/local/install_test.go index 389d5c9..38431be 100644 --- a/internal/cmd/local/local/install_test.go +++ b/internal/cmd/local/local/install_test.go @@ -3,7 +3,6 @@ package local import ( "context" "errors" - "fmt" "net/http" "testing" "time" @@ -13,7 +12,6 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/uuid" helmclient "github.com/mittwald/go-helm-client" - "github.com/mittwald/go-helm-client/values" "helm.sh/helm/v3/pkg/action" "helm.sh/helm/v3/pkg/chart" "helm.sh/helm/v3/pkg/release" @@ -33,6 +31,7 @@ func testChartLocator(chartName, chartVersion string) string { } func TestCommand_Install(t *testing.T) { + expNginxValues, _ := getNginxValuesYaml(9999) expChartRepoCnt := 0 expChartRepo := []struct { name string @@ -85,7 +84,7 @@ func TestCommand_Install(t *testing.T) { CreateNamespace: true, Wait: true, Timeout: 30 * time.Minute, - ValuesOptions: values.Options{Values: []string{fmt.Sprintf("controller.service.ports.http=%d", portTest)}}, + ValuesYaml: expNginxValues, }, release: release.Release{ Chart: &chart.Chart{Metadata: &chart.Metadata{Version: "4.3.2.1"}}, @@ -255,7 +254,7 @@ func TestCommand_Install_HelmValues(t *testing.T) { CreateNamespace: true, Wait: true, Timeout: 30 * time.Minute, - ValuesYaml: expNginxValues, + ValuesYaml: expNginxValues, }, release: release.Release{ Chart: &chart.Chart{Metadata: &chart.Metadata{Version: "4.3.2.1"}},