Skip to content

Commit

Permalink
use alpha skip for deferred action tests
Browse files Browse the repository at this point in the history
  • Loading branch information
austinvalle committed Nov 8, 2024
1 parent dc03785 commit cd4267f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
10 changes: 5 additions & 5 deletions internal/framework5provider/deferred_action_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down
10 changes: 5 additions & 5 deletions internal/framework6provider/deferred_action_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down
4 changes: 2 additions & 2 deletions internal/sdkv2provider/resource_deferred_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down

0 comments on commit cd4267f

Please sign in to comment.