Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
abuchanan-airbyte committed Sep 20, 2024
1 parent 62c2cf2 commit e6fadee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/cmd/local/local/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package local
import (
"context"
"errors"
"fmt"
"net/http"
"testing"
"time"
Expand All @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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"}},
Expand Down Expand Up @@ -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"}},
Expand Down

0 comments on commit e6fadee

Please sign in to comment.