@@ -26,7 +26,7 @@ async fn should_allow_getting_all_torrents() {
2626
2727 let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
2828
29- let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ;
29+ let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ; // DevSkim: ignore DS173237
3030
3131 env. add_torrent_peer ( & info_hash, & PeerBuilder :: default ( ) . into ( ) ) ;
3232
@@ -39,7 +39,7 @@ async fn should_allow_getting_all_torrents() {
3939 assert_torrent_list (
4040 response,
4141 vec ! [ torrent:: ListItem {
42- info_hash: "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string( ) ,
42+ info_hash: "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string( ) , // DevSkim: ignore DS173237
4343 seeders: 1 ,
4444 completed: 0 ,
4545 leechers: 0 ,
@@ -57,8 +57,8 @@ async fn should_allow_limiting_the_torrents_in_the_result() {
5757 let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
5858
5959 // torrents are ordered alphabetically by infohashes
60- let info_hash_1 = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ;
61- let info_hash_2 = InfoHash :: from_str ( "0b3aea4adc213ce32295be85d3883a63bca25446" ) . unwrap ( ) ;
60+ let info_hash_1 = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ; // DevSkim: ignore DS173237
61+ let info_hash_2 = InfoHash :: from_str ( "0b3aea4adc213ce32295be85d3883a63bca25446" ) . unwrap ( ) ; // DevSkim: ignore DS173237
6262
6363 env. add_torrent_peer ( & info_hash_1, & PeerBuilder :: default ( ) . into ( ) ) ;
6464 env. add_torrent_peer ( & info_hash_2, & PeerBuilder :: default ( ) . into ( ) ) ;
@@ -75,7 +75,7 @@ async fn should_allow_limiting_the_torrents_in_the_result() {
7575 assert_torrent_list (
7676 response,
7777 vec ! [ torrent:: ListItem {
78- info_hash: "0b3aea4adc213ce32295be85d3883a63bca25446" . to_string( ) ,
78+ info_hash: "0b3aea4adc213ce32295be85d3883a63bca25446" . to_string( ) , // DevSkim: ignore DS173237
7979 seeders: 1 ,
8080 completed: 0 ,
8181 leechers: 0 ,
@@ -93,8 +93,8 @@ async fn should_allow_the_torrents_result_pagination() {
9393 let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
9494
9595 // torrents are ordered alphabetically by infohashes
96- let info_hash_1 = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ;
97- let info_hash_2 = InfoHash :: from_str ( "0b3aea4adc213ce32295be85d3883a63bca25446" ) . unwrap ( ) ;
96+ let info_hash_1 = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ; // DevSkim: ignore DS173237
97+ let info_hash_2 = InfoHash :: from_str ( "0b3aea4adc213ce32295be85d3883a63bca25446" ) . unwrap ( ) ; // DevSkim: ignore DS173237
9898
9999 env. add_torrent_peer ( & info_hash_1, & PeerBuilder :: default ( ) . into ( ) ) ;
100100 env. add_torrent_peer ( & info_hash_2, & PeerBuilder :: default ( ) . into ( ) ) ;
@@ -111,7 +111,7 @@ async fn should_allow_the_torrents_result_pagination() {
111111 assert_torrent_list (
112112 response,
113113 vec ! [ torrent:: ListItem {
114- info_hash: "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string( ) ,
114+ info_hash: "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string( ) , // DevSkim: ignore DS173237
115115 seeders: 1 ,
116116 completed: 0 ,
117117 leechers: 0 ,
@@ -296,7 +296,7 @@ async fn should_allow_getting_a_torrent_info() {
296296
297297 let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
298298
299- let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ;
299+ let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ; // DevSkim: ignore DS173237
300300
301301 let peer = PeerBuilder :: default ( ) . into ( ) ;
302302
@@ -311,7 +311,7 @@ async fn should_allow_getting_a_torrent_info() {
311311 assert_torrent_info (
312312 response,
313313 Torrent {
314- info_hash : "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string ( ) ,
314+ info_hash : "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string ( ) , // DevSkim: ignore DS173237
315315 seeders : 1 ,
316316 completed : 0 ,
317317 leechers : 0 ,
@@ -330,7 +330,7 @@ async fn should_fail_while_getting_a_torrent_info_when_the_torrent_does_not_exis
330330 let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
331331
332332 let request_id = Uuid :: new_v4 ( ) ;
333- let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ;
333+ let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ; // DevSkim: ignore DS173237
334334
335335 let response = Client :: new ( env. get_connection_info ( ) )
336336 . get_torrent ( & info_hash. to_string ( ) , Some ( headers_with_request_id ( request_id) ) )
@@ -376,7 +376,7 @@ async fn should_not_allow_getting_a_torrent_info_for_unauthenticated_users() {
376376
377377 let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
378378
379- let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ;
379+ let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ; // DevSkim: ignore DS173237
380380
381381 env. add_torrent_peer ( & info_hash, & PeerBuilder :: default ( ) . into ( ) ) ;
382382
0 commit comments