File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -866,16 +866,18 @@ async fn test_server_rejects_unsupported_protocol_version() {
866866fn test_protocol_version_utilities ( ) {
867867 use rmcp:: model:: ProtocolVersion ;
868868
869+ assert_eq ! ( ProtocolVersion :: V_2026_07_28 . as_str( ) , "2026-07-28" ) ;
869870 assert_eq ! ( ProtocolVersion :: V_2025_11_25 . as_str( ) , "2025-11-25" ) ;
870871 assert_eq ! ( ProtocolVersion :: V_2025_06_18 . as_str( ) , "2025-06-18" ) ;
871872 assert_eq ! ( ProtocolVersion :: V_2025_03_26 . as_str( ) , "2025-03-26" ) ;
872873 assert_eq ! ( ProtocolVersion :: V_2024_11_05 . as_str( ) , "2024-11-05" ) ;
873874
874- assert_eq ! ( ProtocolVersion :: KNOWN_VERSIONS . len( ) , 4 ) ;
875+ assert_eq ! ( ProtocolVersion :: KNOWN_VERSIONS . len( ) , 5 ) ;
875876 assert ! ( ProtocolVersion :: KNOWN_VERSIONS . contains( & ProtocolVersion :: V_2024_11_05 ) ) ;
876877 assert ! ( ProtocolVersion :: KNOWN_VERSIONS . contains( & ProtocolVersion :: V_2025_03_26 ) ) ;
877878 assert ! ( ProtocolVersion :: KNOWN_VERSIONS . contains( & ProtocolVersion :: V_2025_06_18 ) ) ;
878879 assert ! ( ProtocolVersion :: KNOWN_VERSIONS . contains( & ProtocolVersion :: V_2025_11_25 ) ) ;
880+ assert ! ( ProtocolVersion :: KNOWN_VERSIONS . contains( & ProtocolVersion :: V_2026_07_28 ) ) ;
879881}
880882
881883/// Integration test: Verify server validates only the Host header for DNS rebinding protection
You can’t perform that action at this time.
0 commit comments