-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 support for severity options in AlertPolicy #9544
Conversation
Hello! I am a robot. It looks like you are a: @roaks3, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 50 insertions(+)) |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 50 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccMonitoringAlertPolicy |
Rerun these tests in REPLAYING mode to catch issues
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but the field appears to be updatable based on the config, so we should probably test that if possible.
mmv1/third_party/terraform/services/monitoring/resource_monitoring_alert_policy_test.go
Show resolved
Hide resolved
@roaks3 Sorry for the delay. Update tests were failing in prod until a recent deployment. They've been added and should be passing now. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 59 insertions(+), 5 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccMonitoringAlertPolicy |
Rerun these tests in REPLAYING mode to catch issues
|
It looks like the linter is unhappy with the formatting of one of the files. Could you double check?
Also, I missed this before, but can we make sure what the behavior is if the |
Reformatted the go files, hopefully this fixes linter. If severity is not specified, the API omits the field. There is no default. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 59 insertions(+), 5 deletions(-)) |
Tests analyticsTotal tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Note: I tweaked the issue description to include the full issue URL that this PR fixes. That will trigger the auto-close behavior. |
…9544) * Add support for severity options in AlertPolicy * Update description for severity options * Add update test for severity options * Format go changes --------- Co-authored-by: James Edouard <[email protected]>
…9544) * Add support for severity options in AlertPolicy * Update description for severity options * Add update test for severity options * Format go changes --------- Co-authored-by: James Edouard <[email protected]>
Resolves hashicorp/terraform-provider-google#16627
Adds support for severity options in AlertPolicy.
I acknowledge that I have:
Release Note Template for Downstream PRs (will be copied)