@@ -32,7 +32,7 @@ public async Task Authorize_WithPolicyName_Success()
32
32
Assert . Equal ( 1 , measurement . Value ) ;
33
33
Assert . Equal ( "Basic" , ( string ) measurement . Tags [ "aspnetcore.authorization.policy" ] ) ;
34
34
Assert . Equal ( "success" , ( string ) measurement . Tags [ "aspnetcore.authorization.result" ] ) ;
35
- Assert . True ( ( bool ) measurement . Tags [ "user.is_authenticated" ] ) ;
35
+ Assert . True ( ( bool ) measurement . Tags [ "aspnetcore. user.is_authenticated" ] ) ;
36
36
}
37
37
38
38
[ Fact ]
@@ -57,7 +57,7 @@ public async Task Authorize_WithPolicyName_Failure()
57
57
Assert . Equal ( 1 , measurement . Value ) ;
58
58
Assert . Equal ( "Basic" , ( string ) measurement . Tags [ "aspnetcore.authorization.policy" ] ) ;
59
59
Assert . Equal ( "failure" , ( string ) measurement . Tags [ "aspnetcore.authorization.result" ] ) ;
60
- Assert . False ( ( bool ) measurement . Tags [ "user.is_authenticated" ] ) ;
60
+ Assert . False ( ( bool ) measurement . Tags [ "aspnetcore. user.is_authenticated" ] ) ;
61
61
}
62
62
63
63
[ Fact ]
@@ -82,7 +82,7 @@ public async Task Authorize_WithPolicyName_PolicyNotFound()
82
82
Assert . Equal ( 1 , measurement . Value ) ;
83
83
Assert . Equal ( "UnknownPolicy" , ( string ) measurement . Tags [ "aspnetcore.authorization.policy" ] ) ;
84
84
Assert . Equal ( "System.InvalidOperationException" , ( string ) measurement . Tags [ "error.type" ] ) ;
85
- Assert . False ( ( bool ) measurement . Tags [ "user.is_authenticated" ] ) ;
85
+ Assert . False ( ( bool ) measurement . Tags [ "aspnetcore. user.is_authenticated" ] ) ;
86
86
Assert . False ( measurement . Tags . ContainsKey ( "aspnetcore.authorization.result" ) ) ;
87
87
}
88
88
@@ -110,7 +110,7 @@ public async Task Authorize_WithoutPolicyName_Success()
110
110
var measurement = Assert . Single ( authorizedRequestsCollector . GetMeasurementSnapshot ( ) ) ;
111
111
Assert . Equal ( 1 , measurement . Value ) ;
112
112
Assert . Equal ( "success" , ( string ) measurement . Tags [ "aspnetcore.authorization.result" ] ) ;
113
- Assert . False ( ( bool ) measurement . Tags [ "user.is_authenticated" ] ) ;
113
+ Assert . False ( ( bool ) measurement . Tags [ "aspnetcore. user.is_authenticated" ] ) ;
114
114
Assert . False ( measurement . Tags . ContainsKey ( "aspnetcore.authorization.policy" ) ) ;
115
115
}
116
116
@@ -135,7 +135,7 @@ public async Task Authorize_WithoutPolicyName_Failure()
135
135
var measurement = Assert . Single ( authorizedRequestsCollector . GetMeasurementSnapshot ( ) ) ;
136
136
Assert . Equal ( 1 , measurement . Value ) ;
137
137
Assert . Equal ( "failure" , ( string ) measurement . Tags [ "aspnetcore.authorization.result" ] ) ;
138
- Assert . False ( ( bool ) measurement . Tags [ "user.is_authenticated" ] ) ;
138
+ Assert . False ( ( bool ) measurement . Tags [ "aspnetcore. user.is_authenticated" ] ) ;
139
139
Assert . False ( measurement . Tags . ContainsKey ( "aspnetcore.authorization.policy" ) ) ;
140
140
}
141
141
@@ -164,7 +164,7 @@ public async Task Authorize_WithoutPolicyName_ExceptionThrownInHandler()
164
164
var measurement = Assert . Single ( authorizedRequestsCollector . GetMeasurementSnapshot ( ) ) ;
165
165
Assert . Equal ( 1 , measurement . Value ) ;
166
166
Assert . Equal ( "System.InvalidOperationException" , ( string ) measurement . Tags [ "error.type" ] ) ;
167
- Assert . False ( ( bool ) measurement . Tags [ "user.is_authenticated" ] ) ;
167
+ Assert . False ( ( bool ) measurement . Tags [ "aspnetcore. user.is_authenticated" ] ) ;
168
168
Assert . False ( measurement . Tags . ContainsKey ( "aspnetcore.authorization.policy" ) ) ;
169
169
Assert . False ( measurement . Tags . ContainsKey ( "aspnetcore.authorization.result" ) ) ;
170
170
}
0 commit comments