We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.9.0
The provider acceptance testing frameworks offer "sweeper" functionality, which is used to automatically clean up testing environments. That testing-based code has logging that is not currently controlled by terraform-plugin-log or environment variables. Code for reference: https://github.com/hashicorp/terraform-plugin-testing/blob/dfd28ce3509bb39a5106844f7d4a8516dcab512e/helper/resource/testing.go#L96-L284
The tfsdklog package has RegisterTestSink(), however that requires a testing.T which is not available in this use case.
tfsdklog
RegisterTestSink()
testing.T
Add a new tfsdklog package function similar to RegisterTestSink, that can be used within the sweeper code.
RegisterTestSink
None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
terraform-plugin-log version
Use cases
The provider acceptance testing frameworks offer "sweeper" functionality, which is used to automatically clean up testing environments. That testing-based code has logging that is not currently controlled by terraform-plugin-log or environment variables. Code for reference: https://github.com/hashicorp/terraform-plugin-testing/blob/dfd28ce3509bb39a5106844f7d4a8516dcab512e/helper/resource/testing.go#L96-L284
Attempted solutions
The
tfsdklog
package hasRegisterTestSink()
, however that requires atesting.T
which is not available in this use case.Proposal
Add a new
tfsdklog
package function similar toRegisterTestSink
, that can be used within the sweeper code.References
None
The text was updated successfully, but these errors were encountered: