-
Notifications
You must be signed in to change notification settings - Fork 4.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
azurerm_sentinel_alert_rule_anomaly_duplicate
- fix acctest
#27635
azurerm_sentinel_alert_rule_anomaly_duplicate
- fix acctest
#27635
Conversation
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.
Thanks for fixing these tests up @ziyeqf. One really minor comment which would be good to have addressed since otherwise this would introduce a variation in the naming of tests. Once that's fixed up this should be good to go.
@@ -76,32 +76,54 @@ func TestAccSentinelAlertRuleAnomalyDuplicate_requiresImport(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func TestAccSentinelAlertRuleAnomalyDuplicate_withCustomObservation(t *testing.T) { | |||
func TestAccSentinelAlertRuleAnomalyDuplicate_ThresholdWithCustomObservation(t *testing.T) { |
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.
Super minor, but test description are camelCased across the provider
func TestAccSentinelAlertRuleAnomalyDuplicate_ThresholdWithCustomObservation(t *testing.T) { | |
func TestAccSentinelAlertRuleAnomalyDuplicate_thresholdWithCustomObservation(t *testing.T) { |
}) | ||
} | ||
|
||
func TestAccSentinelAlertRuleAnomalyDuplicate_MultiSelectWithCustomObservation(t *testing.T) { |
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.
Same here
}) | ||
} | ||
|
||
func TestAccSentinelAlertRuleAnomalyDuplicate_SingleSelectWithCustomObservation(t *testing.T) { |
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.
Same here
}) | ||
} | ||
|
||
func TestAccSentinelAlertRuleAnomalyDuplicate_PrioritizeExcludeWithCustomObservation(t *testing.T) { |
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.
Same here
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.
Thanks @ziyeqf LGTM ⚡
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
the old test case was kind of out of date and failing, so update the testing config.
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_sentinel_alert_rule_anomaly_duplicate
- fix acctest [azurerm_sentinel_alert_rule_anomaly_duplicate
- fix acctest #27635]This is a (please select all that apply):
Related Issue(s)
Note
If this PR changes meaningfully during the course of review please update the title and description as required.