Skip to content
New issue

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

Add DiagnosticCausedByTestFailure type to be used as Extra in diagnostics cased by a test failure #36393

Closed
wants to merge 3 commits into from

Conversation

SarahFrench
Copy link
Member

@SarahFrench SarahFrench commented Jan 23, 2025

This PR improves how we identify a diagnostic that originates from a failed test assertion.

This PR also changes the output of terraform test to supply more information about unknown and sensitive values when a test assertion fails. This change is user-facing and is described in the change file.

Target Release

1.12.x

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

Sorry, something went wrong.

@SarahFrench SarahFrench added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Jan 23, 2025
…stics raised due to a failing test assertion
…ostics specifically about failed assertions in run blocks
@SarahFrench SarahFrench force-pushed the assertion-failure-diag-extra branch from caa6b75 to 328082b Compare January 23, 2025 17:34
@SarahFrench SarahFrench removed the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Jan 23, 2025
@hashicorp hashicorp deleted a comment from github-actions bot Jan 23, 2025
@SarahFrench SarahFrench marked this pull request as ready for review January 23, 2025 17:39
@SarahFrench SarahFrench requested a review from a team as a code owner January 23, 2025 17:39
@SarahFrench SarahFrench marked this pull request as draft January 23, 2025 18:02
@SarahFrench
Copy link
Member Author

Returned to draft as there was a new test I was going to add

@SarahFrench
Copy link
Member Author

This PR's changes to sensitive value visibility in diagnostics from failing test assertions has been superseded by another PR. The changes in this PR to make test assertion failures easier to identify would need to be adapted to fit with that solution. Closing this PR for reference in future.

@SarahFrench SarahFrench deleted the assertion-failure-diag-extra branch February 21, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant