-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[MetricsAdvisor] Added tests for the AnomalyDetectionConfiguration CRUD operations #17590
Conversation
{ | ||
MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); | ||
|
||
var config = new AnomalyDetectionConfiguration(FakeGuid, "configName", new ()); |
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.
just curious, is there any test that will verify the required input for AnomalyDetectionConfiguration
?
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.
There isn't. However, we'll change some of our models' designs to have parameterless constructors (including AnomalyDetectionConfiguration
), so these tests would be discarded. This is feedback we got during the archboard review (#16321).
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.
We'll still have models that may need validation after that, though. That's a good point, so just opened #17650 to track this. We can work on that after the design change.
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. It will be good if someone with full understanding of the service (from other language?) will check as I am not super confident with all configurations
Just added others as reviewers in case they want to contribute. I'll keep it open for more time. |
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.
looks good!
Fixes #15915.
Tests ended up very large because we're testing a complex model. It takes multiple lines for setup and some more for validation.