Skip to content

Commit a0b31ef

Browse files
committed
use SkipBelow instead of require
1 parent ac01519 commit a0b31ef

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

internal/framework/provider/authenticationv1/ephemeral_token_request_v1_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
1111
"github.com/hashicorp/terraform-plugin-testing/statecheck"
1212
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
13+
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1314
)
1415

1516
func TestAccEpehemeralTokenRequest_basic(t *testing.T) {
@@ -19,7 +20,7 @@ func TestAccEpehemeralTokenRequest_basic(t *testing.T) {
1920
resource.ParallelTest(t, resource.TestCase{
2021
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
2122
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
22-
tfversion.RequireVersion("1.10.0"),
23+
tfversion.SkipBelow(tfversion.Version1_10_0),
2324
},
2425
Steps: []resource.TestStep{
2526
{

internal/framework/provider/certificatesv1/ephemeral_certificate_signing_request_v1_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
1111
"github.com/hashicorp/terraform-plugin-testing/statecheck"
1212
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
13+
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1314
)
1415

1516
func TestAccEpehemeralCertificateSigningRequest_basic(t *testing.T) {
@@ -18,7 +19,7 @@ func TestAccEpehemeralCertificateSigningRequest_basic(t *testing.T) {
1819
resource.ParallelTest(t, resource.TestCase{
1920
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
2021
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
21-
tfversion.RequireVersion("1.10.0"),
22+
tfversion.SkipBelow(tfversion.Version1_10_0),
2223
},
2324
Steps: []resource.TestStep{
2425
{

0 commit comments

Comments
 (0)