Skip to content

Commit

Permalink
Add minimum version to writeonly test
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhouston committed Feb 25, 2025
1 parent a005979 commit bf8d183
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/resource_helm_release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ import (
"testing"
"time"

"github.com/hashicorp/go-version"
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/hashicorp/terraform-plugin-testing/terraform"
"github.com/hashicorp/terraform-plugin-testing/tfversion"
"github.com/pkg/errors"
"helm.sh/helm/v3/pkg/action"
"helm.sh/helm/v3/pkg/helmpath"
Expand Down Expand Up @@ -71,6 +73,10 @@ func TestAccResourceRelease_set_wo(t *testing.T) {
defer deleteNamespace(t, namespace)

resource.Test(t, resource.TestCase{
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
// FIXME use const from terraform-plugin-testing once v1.11.0 is released.
tfversion.SkipBelow(version.Must(version.NewVersion("1.11.0"))),
},
// PreCheck: func() { testAccPreCheck(t) },
ProtoV6ProviderFactories: protoV6ProviderFactories(),
// CheckDestroy: testAccCheckHelmReleaseDestroy(namespace),
Expand Down

0 comments on commit bf8d183

Please sign in to comment.