I’d like to validate my provider’s “requires replace” logic in my acceptance testing.
I’m using github.com/hashicorp/terraform-plugin-testing/helper/resource
.
The first resource.TestStep
within a resource.TestCase
will always cause my Create()
method to be executed… But how can I detect whether the second resource.TestStep
leads to Update()
or Delete()
plus Create()
?
I’d like to ensure both conditions:
- Some configuration sequences guarantee recreation
- Other configuration sequences guarantee update-in-place
Thanks!