File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -597,6 +597,7 @@ mod tests {
597597 }
598598
599599 #[ tokio:: test]
600+ #[ ignore = "Requires terminal (crossterm EventStream) which is unavailable in CI" ]
600601 async fn test_tick_increments_frame_count ( ) {
601602 let ( tx, mut rx) = create_event_channel ( ) ;
602603 let running = Arc :: new ( AtomicBool :: new ( true ) ) ;
Original file line number Diff line number Diff line change @@ -708,17 +708,15 @@ mod tests {
708708 fn test_domain_allowlist ( ) {
709709 let config = SsrfConfig :: new ( )
710710 . allow_domain ( "example.com" )
711- . allow_domain ( "sub.example.com" )
712711 . allow_domain ( "api.github.com" ) ;
713712
714713 let protection = SsrfProtection :: with_config ( config) ;
715714
716715 // Allowed domains (exact match required)
717716 assert ! ( protection. validate_url( "https://example.com" ) . is_ok( ) ) ;
718- assert ! ( protection. validate_url( "https://sub.example.com" ) . is_ok( ) ) ;
719717 assert ! ( protection. validate_url( "https://api.github.com" ) . is_ok( ) ) ;
720718
721- // Not in allowlist
719+ // Not in allowlist (subdomains not automatically included)
722720 assert ! ( protection. validate_url( "https://other.com" ) . is_err( ) ) ;
723721 }
724722
Original file line number Diff line number Diff line change @@ -298,11 +298,7 @@ mod tests {
298298
299299 #[ test]
300300 fn test_domain_allowlist ( ) {
301- let handler = FetchUrlHandler :: with_allowed_domains ( [
302- "example.com" ,
303- "sub.example.com" ,
304- "api.github.com" ,
305- ] ) ;
301+ let handler = FetchUrlHandler :: with_allowed_domains ( [ "example.com" , "api.github.com" ] ) ;
306302
307303 // Allowed (exact match required)
308304 assert ! (
@@ -312,11 +308,11 @@ mod tests {
312308 ) ;
313309 assert ! (
314310 handler
315- . validate_url_with_allowlist( "https://sub.example .com" , None )
311+ . validate_url_with_allowlist( "https://api.github .com" , None )
316312 . is_ok( )
317313 ) ;
318314
319- // Not in allowlist
315+ // Not in allowlist (subdomains not automatically included)
320316 assert ! (
321317 handler
322318 . validate_url_with_allowlist( "https://other.com" , None )
You can’t perform that action at this time.
0 commit comments