@@ -26,7 +26,7 @@ async fn should_allow_getting_all_torrents() {
26
26
27
27
let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
28
28
29
- let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ;
29
+ let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ; // DevSkim: ignore DS173237
30
30
31
31
env. add_torrent_peer ( & info_hash, & PeerBuilder :: default ( ) . into ( ) ) ;
32
32
@@ -39,7 +39,7 @@ async fn should_allow_getting_all_torrents() {
39
39
assert_torrent_list (
40
40
response,
41
41
vec ! [ torrent:: ListItem {
42
- info_hash: "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string( ) ,
42
+ info_hash: "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string( ) , // DevSkim: ignore DS173237
43
43
seeders: 1 ,
44
44
completed: 0 ,
45
45
leechers: 0 ,
@@ -57,8 +57,8 @@ async fn should_allow_limiting_the_torrents_in_the_result() {
57
57
let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
58
58
59
59
// 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
62
62
63
63
env. add_torrent_peer ( & info_hash_1, & PeerBuilder :: default ( ) . into ( ) ) ;
64
64
env. add_torrent_peer ( & info_hash_2, & PeerBuilder :: default ( ) . into ( ) ) ;
@@ -75,7 +75,7 @@ async fn should_allow_limiting_the_torrents_in_the_result() {
75
75
assert_torrent_list (
76
76
response,
77
77
vec ! [ torrent:: ListItem {
78
- info_hash: "0b3aea4adc213ce32295be85d3883a63bca25446" . to_string( ) ,
78
+ info_hash: "0b3aea4adc213ce32295be85d3883a63bca25446" . to_string( ) , // DevSkim: ignore DS173237
79
79
seeders: 1 ,
80
80
completed: 0 ,
81
81
leechers: 0 ,
@@ -93,8 +93,8 @@ async fn should_allow_the_torrents_result_pagination() {
93
93
let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
94
94
95
95
// 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
98
98
99
99
env. add_torrent_peer ( & info_hash_1, & PeerBuilder :: default ( ) . into ( ) ) ;
100
100
env. add_torrent_peer ( & info_hash_2, & PeerBuilder :: default ( ) . into ( ) ) ;
@@ -111,7 +111,7 @@ async fn should_allow_the_torrents_result_pagination() {
111
111
assert_torrent_list (
112
112
response,
113
113
vec ! [ torrent:: ListItem {
114
- info_hash: "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string( ) ,
114
+ info_hash: "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string( ) , // DevSkim: ignore DS173237
115
115
seeders: 1 ,
116
116
completed: 0 ,
117
117
leechers: 0 ,
@@ -296,7 +296,7 @@ async fn should_allow_getting_a_torrent_info() {
296
296
297
297
let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
298
298
299
- let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ;
299
+ let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ; // DevSkim: ignore DS173237
300
300
301
301
let peer = PeerBuilder :: default ( ) . into ( ) ;
302
302
@@ -311,7 +311,7 @@ async fn should_allow_getting_a_torrent_info() {
311
311
assert_torrent_info (
312
312
response,
313
313
Torrent {
314
- info_hash : "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string ( ) ,
314
+ info_hash : "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" . to_string ( ) , // DevSkim: ignore DS173237
315
315
seeders : 1 ,
316
316
completed : 0 ,
317
317
leechers : 0 ,
@@ -330,7 +330,7 @@ async fn should_fail_while_getting_a_torrent_info_when_the_torrent_does_not_exis
330
330
let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
331
331
332
332
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
334
334
335
335
let response = Client :: new ( env. get_connection_info ( ) )
336
336
. 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() {
376
376
377
377
let env = Started :: new ( & configuration:: ephemeral ( ) . into ( ) ) . await ;
378
378
379
- let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ;
379
+ let info_hash = InfoHash :: from_str ( "9e0217d0fa71c87332cd8bf9dbeabcb2c2cf3c4d" ) . unwrap ( ) ; // DevSkim: ignore DS173237
380
380
381
381
env. add_torrent_peer ( & info_hash, & PeerBuilder :: default ( ) . into ( ) ) ;
382
382
0 commit comments