Open
Description
Use cases
In some cases, TestCheckFunc
s, ErrorCheckFunc
s, etc., may need to log. Without access to a context
, they won't have access to a tflog
.
Providers can recreate their own test logger (e.g. hashicorp/terraform-provider-aws#29764), but don't have access to the test_step_number
and other logging fields.
Attempted solutions
Implemented our own with only the test_name
field in hashicorp/terraform-provider-aws#29764
Proposal
Add context
-aware versions of functions passed to resource.TestCase
so that the logging context
supplied by the testing framework can be passed