forked from arianvp/terraform-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/acctest: custom framework disappears state function (hashico…
…rp#36410) This change adds a new helper function to the `acctest` package, `CheckFrameworkResourceDisappearsWithStateFunc`, that allows for a custom function to be provided which constructs the plugin framework state from the Terraform instance state. This is helpful for resoures where the default behavior of the `CheckFrameworkResourceDisappears` helper (which only copies root level string arguments into the plugin framework state) results in missing inputs for the delete operation. Cases where nested or non-string arguments must be copied can now rely on custom state functions local to the service testing package.
- Loading branch information
Showing
1 changed file
with
76 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters