@@ -25,6 +25,7 @@ async fn should_allow_generating_a_new_random_auth_key() {
2525 let request_id = Uuid :: new_v4 ( ) ;
2626
2727 let response = Client :: new ( env. get_connection_info ( ) )
28+ . unwrap ( )
2829 . add_auth_key (
2930 AddKeyForm {
3031 opt_key : None ,
@@ -56,6 +57,7 @@ async fn should_allow_uploading_a_preexisting_auth_key() {
5657 let request_id = Uuid :: new_v4 ( ) ;
5758
5859 let response = Client :: new ( env. get_connection_info ( ) )
60+ . unwrap ( )
5961 . add_auth_key (
6062 AddKeyForm {
6163 opt_key : Some ( "Xc1L4PbQJSFGlrgSRZl8wxSFAuMa21z5" . to_string ( ) ) ,
@@ -87,6 +89,7 @@ async fn should_not_allow_generating_a_new_auth_key_for_unauthenticated_users()
8789 let request_id = Uuid :: new_v4 ( ) ;
8890
8991 let response = Client :: new ( connection_with_invalid_token ( env. get_connection_info ( ) . origin ) )
92+ . unwrap ( )
9093 . add_auth_key (
9194 AddKeyForm {
9295 opt_key : None ,
@@ -106,6 +109,7 @@ async fn should_not_allow_generating_a_new_auth_key_for_unauthenticated_users()
106109 let request_id = Uuid :: new_v4 ( ) ;
107110
108111 let response = Client :: new ( connection_with_no_token ( env. get_connection_info ( ) . origin ) )
112+ . unwrap ( )
109113 . add_auth_key (
110114 AddKeyForm {
111115 opt_key : None ,
@@ -136,6 +140,7 @@ async fn should_fail_when_the_auth_key_cannot_be_generated() {
136140 let request_id = Uuid :: new_v4 ( ) ;
137141
138142 let response = Client :: new ( env. get_connection_info ( ) )
143+ . unwrap ( )
139144 . add_auth_key (
140145 AddKeyForm {
141146 opt_key : None ,
@@ -173,6 +178,7 @@ async fn should_allow_deleting_an_auth_key() {
173178 let request_id = Uuid :: new_v4 ( ) ;
174179
175180 let response = Client :: new ( env. get_connection_info ( ) )
181+ . unwrap ( )
176182 . delete_auth_key ( & auth_key. key . to_string ( ) , Some ( headers_with_request_id ( request_id) ) )
177183 . await ;
178184
@@ -207,6 +213,7 @@ async fn should_fail_generating_a_new_auth_key_when_the_provided_key_is_invalid(
207213 let request_id = Uuid :: new_v4 ( ) ;
208214
209215 let response = Client :: new ( env. get_connection_info ( ) )
216+ . unwrap ( )
210217 . post_form (
211218 "keys" ,
212219 & InvalidAddKeyForm {
@@ -246,6 +253,7 @@ async fn should_fail_generating_a_new_auth_key_when_the_key_duration_is_invalid(
246253 let request_id = Uuid :: new_v4 ( ) ;
247254
248255 let response = Client :: new ( env. get_connection_info ( ) )
256+ . unwrap ( )
249257 . post_form (
250258 "keys" ,
251259 & InvalidAddKeyForm {
@@ -282,6 +290,7 @@ async fn should_fail_deleting_an_auth_key_when_the_key_id_is_invalid() {
282290 let request_id = Uuid :: new_v4 ( ) ;
283291
284292 let response = Client :: new ( env. get_connection_info ( ) )
293+ . unwrap ( )
285294 . delete_auth_key ( invalid_auth_key, Some ( headers_with_request_id ( request_id) ) )
286295 . await ;
287296
@@ -311,6 +320,7 @@ async fn should_fail_when_the_auth_key_cannot_be_deleted() {
311320 let request_id = Uuid :: new_v4 ( ) ;
312321
313322 let response = Client :: new ( env. get_connection_info ( ) )
323+ . unwrap ( )
314324 . delete_auth_key ( & auth_key. key . to_string ( ) , Some ( headers_with_request_id ( request_id) ) )
315325 . await ;
316326
@@ -344,6 +354,7 @@ async fn should_not_allow_deleting_an_auth_key_for_unauthenticated_users() {
344354 let request_id = Uuid :: new_v4 ( ) ;
345355
346356 let response = Client :: new ( connection_with_invalid_token ( env. get_connection_info ( ) . origin ) )
357+ . unwrap ( )
347358 . delete_auth_key ( & auth_key. key . to_string ( ) , Some ( headers_with_request_id ( request_id) ) )
348359 . await ;
349360
@@ -366,6 +377,7 @@ async fn should_not_allow_deleting_an_auth_key_for_unauthenticated_users() {
366377 let request_id = Uuid :: new_v4 ( ) ;
367378
368379 let response = Client :: new ( connection_with_no_token ( env. get_connection_info ( ) . origin ) )
380+ . unwrap ( )
369381 . delete_auth_key ( & auth_key. key . to_string ( ) , Some ( headers_with_request_id ( request_id) ) )
370382 . await ;
371383
@@ -396,6 +408,7 @@ async fn should_allow_reloading_keys() {
396408 let request_id = Uuid :: new_v4 ( ) ;
397409
398410 let response = Client :: new ( env. get_connection_info ( ) )
411+ . unwrap ( )
399412 . reload_keys ( Some ( headers_with_request_id ( request_id) ) )
400413 . await ;
401414
@@ -423,6 +436,7 @@ async fn should_fail_when_keys_cannot_be_reloaded() {
423436 force_database_error ( & env. container . tracker_core_container . database ) ;
424437
425438 let response = Client :: new ( env. get_connection_info ( ) )
439+ . unwrap ( )
426440 . reload_keys ( Some ( headers_with_request_id ( request_id) ) )
427441 . await ;
428442
@@ -453,6 +467,7 @@ async fn should_not_allow_reloading_keys_for_unauthenticated_users() {
453467 let request_id = Uuid :: new_v4 ( ) ;
454468
455469 let response = Client :: new ( connection_with_invalid_token ( env. get_connection_info ( ) . origin ) )
470+ . unwrap ( )
456471 . reload_keys ( Some ( headers_with_request_id ( request_id) ) )
457472 . await ;
458473
@@ -466,6 +481,7 @@ async fn should_not_allow_reloading_keys_for_unauthenticated_users() {
466481 let request_id = Uuid :: new_v4 ( ) ;
467482
468483 let response = Client :: new ( connection_with_no_token ( env. get_connection_info ( ) . origin ) )
484+ . unwrap ( )
469485 . reload_keys ( Some ( headers_with_request_id ( request_id) ) )
470486 . await ;
471487
@@ -504,6 +520,7 @@ mod deprecated_generate_key_endpoint {
504520 let seconds_valid = 60 ;
505521
506522 let response = Client :: new ( env. get_connection_info ( ) )
523+ . unwrap ( )
507524 . generate_auth_key ( seconds_valid, None )
508525 . await ;
509526
@@ -530,12 +547,14 @@ mod deprecated_generate_key_endpoint {
530547 let seconds_valid = 60 ;
531548
532549 let response = Client :: new ( connection_with_invalid_token ( env. get_connection_info ( ) . origin ) )
550+ . unwrap ( )
533551 . generate_auth_key ( seconds_valid, Some ( headers_with_request_id ( request_id) ) )
534552 . await ;
535553
536554 assert_token_not_valid ( response) . await ;
537555
538556 let response = Client :: new ( connection_with_no_token ( env. get_connection_info ( ) . origin ) )
557+ . unwrap ( )
539558 . generate_auth_key ( seconds_valid, None )
540559 . await ;
541560
@@ -563,6 +582,7 @@ mod deprecated_generate_key_endpoint {
563582
564583 for invalid_key_duration in invalid_key_durations {
565584 let response = Client :: new ( env. get_connection_info ( ) )
585+ . unwrap ( )
566586 . post_empty ( & format ! ( "key/{invalid_key_duration}" ) , None )
567587 . await ;
568588
@@ -583,6 +603,7 @@ mod deprecated_generate_key_endpoint {
583603 let request_id = Uuid :: new_v4 ( ) ;
584604 let seconds_valid = 60 ;
585605 let response = Client :: new ( env. get_connection_info ( ) )
606+ . unwrap ( )
586607 . generate_auth_key ( seconds_valid, Some ( headers_with_request_id ( request_id) ) )
587608 . await ;
588609
0 commit comments