-
Notifications
You must be signed in to change notification settings - Fork 5.1k
[MetricsAdvisor] Fixing test failures #22555
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -453,10 +453,6 @@ public async Task GetHooksWithMinimumSetup(bool useTokenCredential) | |
| var webHook = hook as WebNotificationHook; | ||
|
|
||
| Assert.That(webHook, Is.Not.Null); | ||
| Assert.That(webHook.CertificateKey, Is.Not.Null); | ||
| Assert.That(webHook.CertificatePassword, Is.Not.Null); | ||
| Assert.That(webHook.Username, Is.Not.Null); | ||
| Assert.That(webHook.Password, Is.Not.Null); | ||
|
Comment on lines
455
to
-459
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The service behaves incredibly weirdly here. Usually they default strings not specified by the user as empty strings. In a webhook, this is a bit different. If not specified, the properties will be Since we can't guarantee they won't be null here (we're getting a list of random hooks from the resource), removed the checks.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sounds good for the test. I don't think it is worth adding this to the docstrings. do u?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems more like accidental behavior than something they actually wanted to do. But I don't think it's really worth it. Users will be setting properties to specific values ( |
||
| Assert.That(webHook.Headers, Is.Not.Null); | ||
| Assert.That(webHook.Headers.Values.Any(value => value == null), Is.False); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,8 +89,8 @@ public async Task RefreshDataFeedIngestionAsync() | |
|
|
||
| string dataFeedId = DataFeedId; | ||
|
|
||
| var startsOn = DateTimeOffset.Parse("2020-08-01T00:00:00Z"); | ||
| var endsOn = DateTimeOffset.Parse("2020-08-03T00:00:00Z"); | ||
| var startsOn = DateTimeOffset.Parse("2021-06-01T00:00:00Z"); | ||
| var endsOn = DateTimeOffset.Parse("2021-06-03T00:00:00Z"); | ||
|
Comment on lines
-92
to
+93
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. New validation by the service. They were complaining that we were trying to re-ingest data from before the ingestion start time we had set up for this data feed. Not gonna lie, they have the right to be mad. |
||
|
|
||
| await adminClient.RefreshDataFeedIngestionAsync(dataFeedId, startsOn, endsOn); | ||
| } | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
The service added some extra validation when creating a data feed, and was complaining that our granularity value was too low. Increased it and needed to rerecord a lot of 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.
I imagine this is something the user knows that needs to adjust? is 300 an arbitrary number? or a recommended value from service
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.
Completely arbitrary. They need to improve a lot of their error messages.
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.
I'll create an issue for this message specifically.
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.
#22557