1
1
use std:: time:: Duration ;
2
2
3
3
use serde:: Serialize ;
4
+ use torrust_tracker_api_client:: v1:: client:: { headers_with_request_id, AddKeyForm , Client } ;
4
5
use torrust_tracker_lib:: core:: auth:: Key ;
5
6
use torrust_tracker_test_helpers:: configuration;
6
7
use uuid:: Uuid ;
@@ -12,7 +13,6 @@ use crate::servers::api::v1::asserts::{
12
13
assert_invalid_auth_key_get_param, assert_invalid_auth_key_post_param, assert_ok, assert_token_not_valid,
13
14
assert_unauthorized, assert_unprocessable_auth_key_duration_param,
14
15
} ;
15
- use crate :: servers:: api:: v1:: client:: { headers_with_request_id, AddKeyForm , Client } ;
16
16
use crate :: servers:: api:: { force_database_error, Started } ;
17
17
18
18
#[ tokio:: test]
@@ -462,6 +462,7 @@ async fn should_not_allow_reloading_keys_for_unauthenticated_users() {
462
462
463
463
mod deprecated_generate_key_endpoint {
464
464
465
+ use torrust_tracker_api_client:: v1:: client:: { headers_with_request_id, Client } ;
465
466
use torrust_tracker_lib:: core:: auth:: Key ;
466
467
use torrust_tracker_test_helpers:: configuration;
467
468
use uuid:: Uuid ;
@@ -472,7 +473,6 @@ mod deprecated_generate_key_endpoint {
472
473
assert_auth_key_utf8, assert_failed_to_generate_key, assert_invalid_key_duration_param, assert_token_not_valid,
473
474
assert_unauthorized,
474
475
} ;
475
- use crate :: servers:: api:: v1:: client:: { headers_with_request_id, Client } ;
476
476
use crate :: servers:: api:: { force_database_error, Started } ;
477
477
478
478
#[ tokio:: test]
0 commit comments