@@ -32,7 +32,7 @@ public async Task Authorize_WithPolicyName_Success()
3232 Assert . Equal ( 1 , measurement . Value ) ;
3333 Assert . Equal ( "Basic" , ( string ) measurement . Tags [ "aspnetcore.authorization.policy" ] ) ;
3434 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" ] ) ;
3636 }
3737
3838 [ Fact ]
@@ -57,7 +57,7 @@ public async Task Authorize_WithPolicyName_Failure()
5757 Assert . Equal ( 1 , measurement . Value ) ;
5858 Assert . Equal ( "Basic" , ( string ) measurement . Tags [ "aspnetcore.authorization.policy" ] ) ;
5959 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" ] ) ;
6161 }
6262
6363 [ Fact ]
@@ -82,7 +82,7 @@ public async Task Authorize_WithPolicyName_PolicyNotFound()
8282 Assert . Equal ( 1 , measurement . Value ) ;
8383 Assert . Equal ( "UnknownPolicy" , ( string ) measurement . Tags [ "aspnetcore.authorization.policy" ] ) ;
8484 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" ] ) ;
8686 Assert . False ( measurement . Tags . ContainsKey ( "aspnetcore.authorization.result" ) ) ;
8787 }
8888
@@ -110,7 +110,7 @@ public async Task Authorize_WithoutPolicyName_Success()
110110 var measurement = Assert . Single ( authorizedRequestsCollector . GetMeasurementSnapshot ( ) ) ;
111111 Assert . Equal ( 1 , measurement . Value ) ;
112112 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" ] ) ;
114114 Assert . False ( measurement . Tags . ContainsKey ( "aspnetcore.authorization.policy" ) ) ;
115115 }
116116
@@ -135,7 +135,7 @@ public async Task Authorize_WithoutPolicyName_Failure()
135135 var measurement = Assert . Single ( authorizedRequestsCollector . GetMeasurementSnapshot ( ) ) ;
136136 Assert . Equal ( 1 , measurement . Value ) ;
137137 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" ] ) ;
139139 Assert . False ( measurement . Tags . ContainsKey ( "aspnetcore.authorization.policy" ) ) ;
140140 }
141141
@@ -164,7 +164,7 @@ public async Task Authorize_WithoutPolicyName_ExceptionThrownInHandler()
164164 var measurement = Assert . Single ( authorizedRequestsCollector . GetMeasurementSnapshot ( ) ) ;
165165 Assert . Equal ( 1 , measurement . Value ) ;
166166 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" ] ) ;
168168 Assert . False ( measurement . Tags . ContainsKey ( "aspnetcore.authorization.policy" ) ) ;
169169 Assert . False ( measurement . Tags . ContainsKey ( "aspnetcore.authorization.result" ) ) ;
170170 }
0 commit comments