-
Notifications
You must be signed in to change notification settings - Fork 23
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
Make Pulumi.RunException
assertable
#203
Labels
kind/enhancement
Improvements or new features
Comments
JasonWhall
added
kind/enhancement
Improvements or new features
needs-triage
Needs attention from the triage team
labels
Nov 7, 2023
Thanks for the suggestion, @JasonWhall. I don't recall if we had a good reason for making |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
Issue details
Currently when writing Unit tests for a stack that does
Pulumi.Log.Error("")
. The resulting stack will throw aPulumi.RunException
in the deployment runner. As this is an internal only type currently, we are unable to assert to check this error has been thrown. The workaround currently is to assert on theException
type, but isn't accurate to the type of exception thrown. Below shows an example of a test that would check for this:Could the
RunException
be made public so we can assert on this?Affected area/feature
Pulumi Core
The text was updated successfully, but these errors were encountered: