@@ -158,8 +158,7 @@ async fn metrics_endpoint_outbound_request_count() {
158158 let srv_port = proxy. outbound_server . as_ref ( ) . unwrap ( ) . addr . port ( ) ;
159159 metrics:: labels ( )
160160 . label ( "direction" , "outbound" )
161- . label ( "tls" , "no_identity" )
162- . label ( "no_tls_reason" , "not_provided_by_service_discovery" )
161+ . label ( "tls" , "disabled" )
163162 . label (
164163 "authority" ,
165164 format_args ! ( "tele.test.svc.cluster.local:{}" , srv_port) ,
@@ -319,13 +318,9 @@ mod response_classification {
319318 #[ tokio:: test]
320319 async fn outbound_http ( ) {
321320 let fixture = async { Fixture :: outbound_with_server ( make_test_server ( ) . await ) . await } ;
322- test_http (
323- fixture,
324- "outbound" ,
325- "no_identity" ,
326- Some ( "not_provided_by_service_discovery" ) ,
327- |proxy| Some ( proxy. outbound_server . as_ref ( ) . unwrap ( ) . addr . port ( ) ) ,
328- )
321+ test_http ( fixture, "outbound" , "disabled" , None , |proxy| {
322+ Some ( proxy. outbound_server . as_ref ( ) . unwrap ( ) . addr . port ( ) )
323+ } )
329324 . await
330325 }
331326}
@@ -1135,8 +1130,7 @@ mod transport {
11351130 format_args ! ( "tele.test.svc.cluster.local:{}" , port) ,
11361131 )
11371132 . label ( "direction" , "outbound" )
1138- . label ( "tls" , "no_identity" )
1139- . label ( "no_tls_reason" , "not_provided_by_service_discovery" )
1133+ . label ( "tls" , "disabled" )
11401134 } )
11411135 . await ;
11421136 }
@@ -1170,8 +1164,7 @@ mod transport {
11701164 metrics:: labels ( )
11711165 . label ( "authority" , proxy. outbound_server . as_ref ( ) . unwrap ( ) . addr )
11721166 . label ( "direction" , "outbound" )
1173- . label ( "tls" , "no_identity" )
1174- . label ( "no_tls_reason" , "not_provided_by_service_discovery" )
1167+ . label ( "tls" , "disabled" )
11751168 } )
11761169 . await ;
11771170 }
@@ -1214,8 +1207,7 @@ mod transport {
12141207 metrics:: metric ( "tcp_close_total" )
12151208 . label ( "peer" , "dst" )
12161209 . label ( "direction" , "inbound" )
1217- . label ( "tls" , "no_identity" )
1218- . label ( "no_tls_reason" , "not_provided_by_service_discovery" )
1210+ . label ( "tls" , "disabled" )
12191211 . label ( "errno" , "EXFULL" )
12201212 . value ( 1u64 )
12211213 . assert_in ( & metrics)
@@ -1256,8 +1248,7 @@ mod transport {
12561248 metrics:: metric ( "tcp_close_total" )
12571249 . label ( "peer" , "dst" )
12581250 . label ( "direction" , "outbound" )
1259- . label ( "tls" , "no_identity" )
1260- . label ( "no_tls_reason" , "not_provided_by_service_discovery" )
1251+ . label ( "tls" , "disabled" )
12611252 . label ( "errno" , "EXFULL" )
12621253 . value ( 1u64 )
12631254 . assert_in ( & metrics)
@@ -1379,8 +1370,7 @@ mod transport {
13791370 let mut dst_count = metrics:: metric ( "tcp_connection_duration_count" )
13801371 . label ( "peer" , "dst" )
13811372 . label ( "direction" , "outbound" )
1382- . label ( "tls" , "no_identity" )
1383- . label ( "no_tls_reason" , "not_provided_by_service_discovery" )
1373+ . label ( "tls" , "disabled" )
13841374 . label ( "errno" , "" )
13851375 . value ( 1u64 ) ;
13861376
@@ -1416,8 +1406,7 @@ mod transport {
14161406 |proxy| {
14171407 metrics:: labels ( )
14181408 . label ( "direction" , "outbound" )
1419- . label ( "tls" , "no_identity" )
1420- . label ( "no_tls_reason" , "not_provided_by_service_discovery" )
1409+ . label ( "tls" , "disabled" )
14211410 . label ( "authority" , proxy. outbound_server . as_ref ( ) . unwrap ( ) . addr )
14221411 } ,
14231412 )
@@ -1435,8 +1424,7 @@ mod transport {
14351424 |proxy| {
14361425 metrics:: labels ( )
14371426 . label ( "direction" , "outbound" )
1438- . label ( "tls" , "no_identity" )
1439- . label ( "no_tls_reason" , "not_provided_by_service_discovery" )
1427+ . label ( "tls" , "disabled" )
14401428 . label ( "authority" , proxy. outbound_server . as_ref ( ) . unwrap ( ) . addr )
14411429 } ,
14421430 )
0 commit comments