-
Notifications
You must be signed in to change notification settings - Fork 13
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
Ability to test whether warnings are raised during test steps #16
Labels
enhancement
New feature or request
Comments
bendbennett
added a commit
that referenced
this issue
Jan 3, 2023
…ry and unmarshalling onto terraform-json diagnostic to verify warning matches expected regex (#16)
bendbennett
added a commit
that referenced
this issue
Jan 3, 2023
bendbennett
added a commit
that referenced
this issue
Jan 3, 2023
bendbennett
added a commit
that referenced
this issue
Jan 3, 2023
…ning output from stdout returns an error (#16)
bendbennett
added a commit
that referenced
this issue
Jan 12, 2023
…ry and unmarshalling onto terraform-json diagnostic to verify warning matches expected regex (#16)
bendbennett
added a commit
that referenced
this issue
Jan 12, 2023
bendbennett
added a commit
that referenced
this issue
Jan 12, 2023
bendbennett
added a commit
that referenced
this issue
Jan 12, 2023
…ning output from stdout returns an error (#16)
bendbennett
added a commit
that referenced
this issue
Jan 12, 2023
bendbennett
added a commit
that referenced
this issue
Jan 12, 2023
bendbennett
added a commit
that referenced
this issue
Jan 12, 2023
bendbennett
added a commit
that referenced
this issue
Jan 13, 2023
bendbennett
added a commit
that referenced
this issue
Jan 16, 2023
…her than ApplyJSON()) if running commands with -json flag raises an ErrVersionMismatch error (#16)
bendbennett
added a commit
that referenced
this issue
Jan 16, 2023
bendbennett
added a commit
that referenced
this issue
Jan 16, 2023
bendbennett
added a commit
that referenced
this issue
Jan 18, 2023
bendbennett
added a commit
that referenced
this issue
Jan 18, 2023
bendbennett
added a commit
that referenced
this issue
Jan 18, 2023
bendbennett
added a commit
that referenced
this issue
Jan 23, 2023
bendbennett
added a commit
that referenced
this issue
Jan 23, 2023
…son.Diagnostic into a separate TerraformJSONDiagnostics type (#16)
bendbennett
added a commit
that referenced
this issue
Jan 24, 2023
bendbennett
added a commit
that referenced
this issue
Jan 24, 2023
…nces of NewTerraformJSONBuffer within each command (#16)
bendbennett
added a commit
that referenced
this issue
Jan 24, 2023
bendbennett
added a commit
that referenced
this issue
Jan 24, 2023
bendbennett
added a commit
that referenced
this issue
Jan 25, 2023
bendbennett
added a commit
that referenced
this issue
Jan 25, 2023
bendbennett
added a commit
that referenced
this issue
Jan 25, 2023
bendbennett
added a commit
that referenced
this issue
Jan 31, 2023
bendbennett
added a commit
that referenced
this issue
Jan 31, 2023
bendbennett
added a commit
that referenced
this issue
Jan 31, 2023
bendbennett
added a commit
that referenced
this issue
Jan 31, 2023
Closing as a duplicate of the (now transferred) #69. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This issue is a duplicate of Ability to test whether warnings are raised during test steps.
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
Add an
ExpectWarning
field toTestStep
and use json output from terraform commands to determine whether warnings have been generated during execution of a test step.Requires changes to terraform-exec to add support for executing terraform commands with
-json
option (see References below for links to relevant issue and PRs on terraform-exec repository.References
The text was updated successfully, but these errors were encountered: