Skip to content

Commit df729e1

Browse files
authored
Fix monitor live test after a service change (Azure#25682)
1 parent 26ed740 commit df729e1

File tree

3 files changed

+59
-35
lines changed

3 files changed

+59
-35
lines changed

sdk/monitor/Azure.Monitor.Query/tests/MetricsQueryClientLiveTests.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,14 @@ public async Task CanListNamespacesMetrics()
255255
TestEnvironment.MetricsResource).ToEnumerableAsync();
256256

257257
Assert.True(results.Any(ns =>
258-
ns.Name == "Microsoft.OperationalInsights-workspaces" &&
258+
ns.Name == "Cows" &&
259259
ns.Type == "Microsoft.Insights/metricNamespaces" &&
260-
ns.FullyQualifiedName == "Microsoft.OperationalInsights/workspaces"));
260+
ns.FullyQualifiedName == "Cows"));
261+
262+
Assert.True(results.Any(ns =>
263+
ns.Name == "microsoft.operationalinsights-workspaces" &&
264+
ns.Type == "Microsoft.Insights/metricNamespaces" &&
265+
ns.FullyQualifiedName == "microsoft.operationalinsights/workspaces"));
261266
}
262267

263268
[RecordedTest]

sdk/monitor/Azure.Monitor.Query/tests/SessionRecords/MetricsQueryClientLiveTests/CanListNamespacesMetrics.json

Lines changed: 25 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/monitor/Azure.Monitor.Query/tests/SessionRecords/MetricsQueryClientLiveTests/CanListNamespacesMetricsAsync.json

Lines changed: 27 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)