diff --git a/.changes/1.2.0.md b/.changes/1.2.0.md new file mode 100644 index 000000000..44132216c --- /dev/null +++ b/.changes/1.2.0.md @@ -0,0 +1,20 @@ +## 1.2.0 (March 22, 2023) + +NOTES: + +* This Go module has been updated to Go 1.19 per the [Go support policy](https://golang.org/doc/devel/release.html#policy). Any consumers building on earlier Go versions may experience errors. ([#91](https://github.com/hashicorp/terraform-plugin-testing/issues/91)) +* helper/resource: Deprecated `PrefixedUniqueId()` and `UniqueId()`. Use the `github.com/hashicorp/terraform-plugin-sdk/v2/helper/id` package instead. ([#96](https://github.com/hashicorp/terraform-plugin-testing/issues/96)) +* helper/resource: Deprecated `RetryContext()`, `StateChangeConf`, and associated `*Error` types. Use the `github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry` package instead. ([#96](https://github.com/hashicorp/terraform-plugin-testing/issues/96)) +* helper/resource: Deprecated Terraform module-based `TestCheckFunc`, such as `TestCheckModuleResourceAttr`. Provider testing should always be possible within the root module of a Terraform configuration. Terraform module testing should be performed with Terraform core functionality or using tooling outside this Go module. ([#109](https://github.com/hashicorp/terraform-plugin-testing/issues/109)) + +FEATURES: + +* plancheck: Introduced new `plancheck` package with interface and built-in plan check functionality ([#63](https://github.com/hashicorp/terraform-plugin-testing/issues/63)) +* plancheck: Added `ExpectResourceAction` built-in plan check, which asserts that a given resource will have a specific resource change type in the plan ([#63](https://github.com/hashicorp/terraform-plugin-testing/issues/63)) +* plancheck: Added `ExpectEmptyPlan` built-in plan check, which asserts that there are no resource changes in the plan ([#63](https://github.com/hashicorp/terraform-plugin-testing/issues/63)) +* plancheck: Added `ExpectNonEmptyPlan` built-in plan check, which asserts that there is at least one resource change in the plan ([#63](https://github.com/hashicorp/terraform-plugin-testing/issues/63)) + +ENHANCEMENTS: + +* helper/resource: Added plan check functionality to config and refresh modes with new fields `TestStep.ConfigPlanChecks` and `TestStep.RefreshPlanChecks` ([#63](https://github.com/hashicorp/terraform-plugin-testing/issues/63)) + diff --git a/.changes/unreleased/ENHANCEMENTS-20230321-174020.yaml b/.changes/unreleased/ENHANCEMENTS-20230321-174020.yaml deleted file mode 100644 index b8411d38c..000000000 --- a/.changes/unreleased/ENHANCEMENTS-20230321-174020.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: ENHANCEMENTS -body: 'helper/resource: Added plan check functionality to config and refresh modes - with new fields `TestStep.ConfigPlanChecks` and `TestStep.RefreshPlanChecks`' -time: 2023-03-21T17:40:20.521786-04:00 -custom: - Issue: "63" diff --git a/.changes/unreleased/FEATURES-20230321-173506.yaml b/.changes/unreleased/FEATURES-20230321-173506.yaml deleted file mode 100644 index 7f2dd9683..000000000 --- a/.changes/unreleased/FEATURES-20230321-173506.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: FEATURES -body: 'plancheck: Introduced new `plancheck` package with interface and built-in plan - check functionality' -time: 2023-03-21T17:35:06.650327-04:00 -custom: - Issue: "63" diff --git a/.changes/unreleased/FEATURES-20230321-173639.yaml b/.changes/unreleased/FEATURES-20230321-173639.yaml deleted file mode 100644 index 7d897d92d..000000000 --- a/.changes/unreleased/FEATURES-20230321-173639.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: FEATURES -body: 'plancheck: Added `ExpectResourceAction` built-in plan check, which asserts - that a given resource will have a specific resource change type in the plan' -time: 2023-03-21T17:36:39.391477-04:00 -custom: - Issue: "63" diff --git a/.changes/unreleased/FEATURES-20230321-173726.yaml b/.changes/unreleased/FEATURES-20230321-173726.yaml deleted file mode 100644 index e85622f80..000000000 --- a/.changes/unreleased/FEATURES-20230321-173726.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: FEATURES -body: 'plancheck: Added `ExpectEmptyPlan` built-in plan check, which asserts that - there are no resource changes in the plan' -time: 2023-03-21T17:37:26.076041-04:00 -custom: - Issue: "63" diff --git a/.changes/unreleased/FEATURES-20230321-173805.yaml b/.changes/unreleased/FEATURES-20230321-173805.yaml deleted file mode 100644 index 2650209fc..000000000 --- a/.changes/unreleased/FEATURES-20230321-173805.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: FEATURES -body: 'plancheck: Added `ExpectNonEmptyPlan` built-in plan check, which asserts that - there is at least one resource change in the plan' -time: 2023-03-21T17:38:05.815307-04:00 -custom: - Issue: "63" diff --git a/.changes/unreleased/NOTES-20230306-080139.yaml b/.changes/unreleased/NOTES-20230306-080139.yaml deleted file mode 100644 index e6c4c3e3c..000000000 --- a/.changes/unreleased/NOTES-20230306-080139.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: NOTES -body: This Go module has been updated to Go 1.19 per the [Go support policy](https://golang.org/doc/devel/release.html#policy). - Any consumers building on earlier Go versions may experience errors. -time: 2023-03-06T08:01:39.637663Z -custom: - Issue: "91" diff --git a/.changes/unreleased/NOTES-20230309-110205.yaml b/.changes/unreleased/NOTES-20230309-110205.yaml deleted file mode 100644 index 0df745de3..000000000 --- a/.changes/unreleased/NOTES-20230309-110205.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: NOTES -body: 'helper/resource: Deprecated `PrefixedUniqueId()` and `UniqueId()`. Use the - `github.com/hashicorp/terraform-plugin-sdk/v2/helper/id` package instead.' -time: 2023-03-09T11:02:05.211873-05:00 -custom: - Issue: "96" diff --git a/.changes/unreleased/NOTES-20230309-110444.yaml b/.changes/unreleased/NOTES-20230309-110444.yaml deleted file mode 100644 index b6924fa5e..000000000 --- a/.changes/unreleased/NOTES-20230309-110444.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: NOTES -body: 'helper/resource: Deprecated `RetryContext()`, `StateChangeConf`, and associated - `*Error` types. Use the `github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry` - package instead.' -time: 2023-03-09T11:04:44.570331-05:00 -custom: - Issue: "96" diff --git a/.changes/unreleased/NOTES-20230322-104531.yaml b/.changes/unreleased/NOTES-20230322-104531.yaml deleted file mode 100644 index 8f8159453..000000000 --- a/.changes/unreleased/NOTES-20230322-104531.yaml +++ /dev/null @@ -1,9 +0,0 @@ -kind: NOTES -body: 'helper/resource: Deprecated Terraform module-based `TestCheckFunc`, such - as `TestCheckModuleResourceAttr`. Provider testing should always be possible - within the root module of a Terraform configuration. Terraform module testing - should be performed with Terraform core functionality or using tooling - outside this Go module.' -time: 2023-03-22T10:45:31.410428-04:00 -custom: - Issue: "109" diff --git a/CHANGELOG.md b/CHANGELOG.md index f48a2a4bb..b500700fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +## 1.2.0 (March 22, 2023) + +NOTES: + +* This Go module has been updated to Go 1.19 per the [Go support policy](https://golang.org/doc/devel/release.html#policy). Any consumers building on earlier Go versions may experience errors. ([#91](https://github.com/hashicorp/terraform-plugin-testing/issues/91)) +* helper/resource: Deprecated `PrefixedUniqueId()` and `UniqueId()`. Use the `github.com/hashicorp/terraform-plugin-sdk/v2/helper/id` package instead. ([#96](https://github.com/hashicorp/terraform-plugin-testing/issues/96)) +* helper/resource: Deprecated `RetryContext()`, `StateChangeConf`, and associated `*Error` types. Use the `github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry` package instead. ([#96](https://github.com/hashicorp/terraform-plugin-testing/issues/96)) +* helper/resource: Deprecated Terraform module-based `TestCheckFunc`, such as `TestCheckModuleResourceAttr`. Provider testing should always be possible within the root module of a Terraform configuration. Terraform module testing should be performed with Terraform core functionality or using tooling outside this Go module. ([#109](https://github.com/hashicorp/terraform-plugin-testing/issues/109)) + +FEATURES: + +* plancheck: Introduced new `plancheck` package with interface and built-in plan check functionality ([#63](https://github.com/hashicorp/terraform-plugin-testing/issues/63)) +* plancheck: Added `ExpectResourceAction` built-in plan check, which asserts that a given resource will have a specific resource change type in the plan ([#63](https://github.com/hashicorp/terraform-plugin-testing/issues/63)) +* plancheck: Added `ExpectEmptyPlan` built-in plan check, which asserts that there are no resource changes in the plan ([#63](https://github.com/hashicorp/terraform-plugin-testing/issues/63)) +* plancheck: Added `ExpectNonEmptyPlan` built-in plan check, which asserts that there is at least one resource change in the plan ([#63](https://github.com/hashicorp/terraform-plugin-testing/issues/63)) + +ENHANCEMENTS: + +* helper/resource: Added plan check functionality to config and refresh modes with new fields `TestStep.ConfigPlanChecks` and `TestStep.RefreshPlanChecks` ([#63](https://github.com/hashicorp/terraform-plugin-testing/issues/63)) + ## 1.1.0 (February 06, 2023) FEATURES: