Skip to content

Commit

Permalink
Add step to copy temporary helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 committed May 22, 2023
1 parent aac4979 commit 551f0c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/helm/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import (
"testing"
"time"

"github.com/gruntwork-io/terratest/modules/files"

"github.com/stretchr/testify/assert"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -110,6 +112,9 @@ func TestHelmDependencyInstall(t *testing.T) {
helmChartPath, err := filepath.Abs("../../examples/helm-dependency-example")
require.NoError(t, err)

helmChartPath, err = files.CopyTerraformFolderToTemp(helmChartPath, t.Name())
require.NoError(t, err)

// Custom namespace name.
namespaceName := fmt.Sprintf("helm-dependency-example-%s", strings.ToLower(random.UniqueId()))

Expand Down

0 comments on commit 551f0c3

Please sign in to comment.