Skip to content

Commit 5802852

Browse files
committed
Add test guard by TF version
1 parent 4100103 commit 5802852

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/service/ec2/ec2_stop_instance_action_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/hashicorp/terraform-plugin-go/tftypes"
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
tfec2 "github.com/hashicorp/terraform-provider-aws/internal/service/ec2"
@@ -32,6 +33,9 @@ func TestAccEC2StopInstanceAction_basic(t *testing.T) {
3233
},
3334
ErrorCheck: acctest.ErrorCheck(t, names.EC2ServiceID),
3435
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
36+
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
37+
tfversion.SkipBelow(tfversion.Version1_14_0),
38+
},
3539
Steps: []resource.TestStep{
3640
{
3741
Config: testAccStopInstanceActionConfig_force(rName),
@@ -72,6 +76,9 @@ func TestAccEC2StopInstanceAction_trigger(t *testing.T) {
7276
},
7377
ErrorCheck: acctest.ErrorCheck(t, names.EC2ServiceID),
7478
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
79+
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
80+
tfversion.SkipBelow(tfversion.Version1_14_0),
81+
},
7582
Steps: []resource.TestStep{
7683
{
7784
Config: testAccStopInstanceActionConfig_trigger(rName),

0 commit comments

Comments
 (0)