From cd4267f523f6a1232babe987f909a2c11f367eb2 Mon Sep 17 00:00:00 2001 From: Austin Valle Date: Fri, 8 Nov 2024 16:15:55 -0500 Subject: [PATCH] use alpha skip for deferred action tests --- go.mod | 2 +- go.sum | 4 ++-- .../deferred_action_resource_test.go | 10 +++++----- .../deferred_action_resource_test.go | 10 +++++----- .../sdkv2provider/resource_deferred_action_test.go | 4 ++-- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index ab93d9b..e53069a 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/hashicorp/terraform-plugin-go v0.25.0 github.com/hashicorp/terraform-plugin-mux v0.17.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0 - github.com/hashicorp/terraform-plugin-testing v1.10.1-0.20241108202506-5820989c3149 + github.com/hashicorp/terraform-plugin-testing v1.10.1-0.20241108211256-6250e0137098 github.com/zclconf/go-cty v1.15.0 ) diff --git a/go.sum b/go.sum index a9efefb..d1c85fa 100644 --- a/go.sum +++ b/go.sum @@ -95,8 +95,8 @@ github.com/hashicorp/terraform-plugin-mux v0.17.0 h1:/J3vv3Ps2ISkbLPiZOLspFcIZ0v github.com/hashicorp/terraform-plugin-mux v0.17.0/go.mod h1:yWuM9U1Jg8DryNfvCp+lH70WcYv6D8aooQxxxIzFDsE= github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0 h1:wyKCCtn6pBBL46c1uIIBNUOWlNfYXfXpVo16iDyLp8Y= github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0/go.mod h1:B0Al8NyYVr8Mp/KLwssKXG1RqnTk7FySqSn4fRuLNgw= -github.com/hashicorp/terraform-plugin-testing v1.10.1-0.20241108202506-5820989c3149 h1:yLKwZJBZhbD1EcoScvbKrK7/LlSwgRe8EmuB6Ezh+b8= -github.com/hashicorp/terraform-plugin-testing v1.10.1-0.20241108202506-5820989c3149/go.mod h1:KO4JzpCD5O7tSKZk20W70X2tpna9pIEoiTQD6cS8VrU= +github.com/hashicorp/terraform-plugin-testing v1.10.1-0.20241108211256-6250e0137098 h1:WMmJk5NhBNfZjL7kapW4r16rXn3+R3NaAGiNoubT5Xk= +github.com/hashicorp/terraform-plugin-testing v1.10.1-0.20241108211256-6250e0137098/go.mod h1:KO4JzpCD5O7tSKZk20W70X2tpna9pIEoiTQD6cS8VrU= github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI= github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= diff --git a/internal/framework5provider/deferred_action_resource_test.go b/internal/framework5provider/deferred_action_resource_test.go index 4fa9191..f0cb2dc 100644 --- a/internal/framework5provider/deferred_action_resource_test.go +++ b/internal/framework5provider/deferred_action_resource_test.go @@ -21,7 +21,7 @@ func TestDeferredActionResource_ProviderDeferral(t *testing.T) { resource.UnitTest(t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Plan: resource.PlanOptions{AllowDeferral: true}, @@ -90,7 +90,7 @@ func TestDeferredActionPlanModificationResource_ProviderDeferral(t *testing.T) { resource.UnitTest(t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Plan: resource.PlanOptions{AllowDeferral: true}, @@ -169,7 +169,7 @@ func TestDeferredActionResource_ModifyPlanDeferral(t *testing.T) { resource.UnitTest(t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Plan: resource.PlanOptions{AllowDeferral: true}, @@ -211,7 +211,7 @@ func TestDeferredActionResource_ReadDeferral(t *testing.T) { resource.UnitTest(t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Plan: resource.PlanOptions{AllowDeferral: true}, @@ -240,7 +240,7 @@ func TestDeferredActionResource_ImportStateDeferral(t *testing.T) { resource.UnitTest(t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Plan: resource.PlanOptions{AllowDeferral: true}, diff --git a/internal/framework6provider/deferred_action_resource_test.go b/internal/framework6provider/deferred_action_resource_test.go index baebe76..8a1f628 100644 --- a/internal/framework6provider/deferred_action_resource_test.go +++ b/internal/framework6provider/deferred_action_resource_test.go @@ -21,7 +21,7 @@ func TestDeferredActionResource_ProviderDeferral(t *testing.T) { resource.UnitTest(t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Plan: resource.PlanOptions{AllowDeferral: true}, @@ -90,7 +90,7 @@ func TestDeferredActionPlanModificationResource_ProviderDeferral(t *testing.T) { resource.UnitTest(t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Plan: resource.PlanOptions{AllowDeferral: true}, @@ -169,7 +169,7 @@ func TestDeferredActionResource_ModifyPlanDeferral(t *testing.T) { resource.UnitTest(t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Plan: resource.PlanOptions{AllowDeferral: true}, @@ -211,7 +211,7 @@ func TestDeferredActionResource_ReadDeferral(t *testing.T) { resource.UnitTest(t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Plan: resource.PlanOptions{AllowDeferral: true}, @@ -240,7 +240,7 @@ func TestDeferredActionResource_ImportStateDeferral(t *testing.T) { resource.UnitTest(t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Plan: resource.PlanOptions{AllowDeferral: true}, diff --git a/internal/sdkv2provider/resource_deferred_action_test.go b/internal/sdkv2provider/resource_deferred_action_test.go index 5a5c44e..da32104 100644 --- a/internal/sdkv2provider/resource_deferred_action_test.go +++ b/internal/sdkv2provider/resource_deferred_action_test.go @@ -16,7 +16,7 @@ func testAccResourceDeferredAction(t *testing.T) resource.TestCase { return resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Apply: resource.ApplyOptions{AllowDeferral: true}, @@ -64,7 +64,7 @@ func testAccResourceDeferredActionPlanModification(t *testing.T) resource.TestCa return resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_9_0), - tfversion.SkipIfNotPrerelease(), + tfversion.SkipIfNotAlpha(), }, AdditionalCLIOptions: &resource.AdditionalCLIOptions{ Apply: resource.ApplyOptions{AllowDeferral: true},