Skip to content

Commit 0347a41

Browse files
[Infra] Fix broken test
Fix test broken by change in behaviour in .NET 10.
1 parent cddc78f commit 0347a41

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/README.net10.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@
455455
"IdealHttpRoute": "/Index",
456456
"ActivityDisplayName": "GET",
457457
"ActivityHttpRoute": "",
458-
"MetricHttpRoute": "",
458+
"MetricHttpRoute": "/",
459459
"RouteInfo": {
460460
"HttpMethod": "GET",
461461
"Path": "/",

test/OpenTelemetry.Instrumentation.AspNetCore.Tests/RouteTests/RoutingTestCases.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,17 @@
135135
"currentHttpRoute": "",
136136
"expectedHttpRoute": "/Index"
137137
},
138+
{
139+
"name": "Root path",
140+
"testApplicationScenario": "RazorPages",
141+
"minimumDotnetVersion": 10,
142+
"httpMethod": "GET",
143+
"path": "/",
144+
"expectedStatusCode": 200,
145+
"currentHttpRoute": "",
146+
"expectedHttpRoute": "/Index",
147+
"expectedMetricRoute": "/"
148+
},
138149
{
139150
"name": "Index page",
140151
"testApplicationScenario": "RazorPages",

0 commit comments

Comments
 (0)