Skip to content

Commit 459bb3f

Browse files
committed
Add test guard by TF version
1 parent 9a70a5a commit 459bb3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/service/cloudfront/create_invalidation_action_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
awstypes "github.com/aws/aws-sdk-go-v2/service/cloudfront/types"
1414
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1515
"github.com/hashicorp/terraform-plugin-testing/terraform"
16+
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1617
"github.com/hashicorp/terraform-provider-aws/internal/acctest"
1718
"github.com/hashicorp/terraform-provider-aws/internal/conns"
1819
"github.com/hashicorp/terraform-provider-aws/names"
@@ -31,7 +32,10 @@ func TestAccCloudFrontCreateInvalidationAction_basic(t *testing.T) {
3132
},
3233
ErrorCheck: acctest.ErrorCheck(t, names.CloudFrontServiceID),
3334
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
34-
CheckDestroy: testAccCheckDistributionDestroy(ctx),
35+
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
36+
tfversion.SkipBelow(tfversion.Version1_14_0),
37+
},
38+
CheckDestroy: testAccCheckDistributionDestroy(ctx),
3539
Steps: []resource.TestStep{
3640
{
3741
Config: testAccCreateInvalidationActionConfig_basic(rName),

0 commit comments

Comments
 (0)