-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Monitor Fix Missing ResourceId Bug #44186
base: main
Are you sure you want to change the base?
Conversation
API change check API changes are not detected in this pull request. |
} | ||
|
||
@Test | ||
public void testQueryResourcesReturnsNonNullResourceId() { |
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 don't need a separate test to check if resourceId is not null. We can just add an assertEquals
to the previous test.
@@ -75,4 +75,33 @@ public void testMetricsBatchQueryDifferentResourceTypes() { | |||
|
|||
} | |||
|
|||
@Test | |||
public void testQueryResourcesReturnsNonNullResourceId() { |
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 - we can just update the previous test to check for resource id in the response.
= metricsClient | ||
.queryResourcesWithResponse(Arrays.asList(resourceId), Arrays.asList("HttpIncomingRequestCount"), | ||
"microsoft.appconfiguration/configurationstores", options) | ||
.block() |
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.
Async tests should not use block()
. Use StepVerifier
instead.
Bug fix for #43841