terraform-plugin-sdk icon indicating copy to clipboard operation
terraform-plugin-sdk copied to clipboard

Ability to test whether warnings are raised during test steps

Open smaeda-ks opened this issue 3 years ago • 0 comments

SDK version

N/A

Use-cases

Currently, ExpectError field only allows checking errors, not warnings. This makes provider developers hard to test certain scenarios where warnings are expected and want to validate the exact behavior in tests.

Attempted Solutions

N/A

Proposal

N/A

References

https://discuss.hashicorp.com/t/how-to-test-warnings/34259

smaeda-ks avatar Jan 28 '22 23:01 smaeda-ks