From d6235f4187283fae0edbef5389af01a26e840ace Mon Sep 17 00:00:00 2001 From: Benjamin Sommerfeld Date: Thu, 24 Oct 2024 11:08:38 +0200 Subject: [PATCH] refactor: final changes in naming and translations --- Cargo.lock | 1 - src/models/auth.rs | 2 +- src/models/domain.rs | 2 +- test/test_auth_bearer_response.json | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 52c70ab..41e0fc8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2108,7 +2108,6 @@ dependencies = [ [[package]] name = "serde_json" - version = "1.0.132" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" diff --git a/src/models/auth.rs b/src/models/auth.rs index 2f7e68d..9d2a5ee 100644 --- a/src/models/auth.rs +++ b/src/models/auth.rs @@ -29,7 +29,7 @@ mod tests { // Read the JSON contents of the file as an instance of `User`. let vobj: BearerResponse = read_json_from_file("test/test_auth_bearer_response.json").unwrap(); - assert_eq!(vobj.access_token, "das.ist.ein.token"); + assert_eq!(vobj.access_token, "ths.is.a.token"); } #[test] fn deserialize_jwt_claims() { diff --git a/src/models/domain.rs b/src/models/domain.rs index f23d289..6787548 100644 --- a/src/models/domain.rs +++ b/src/models/domain.rs @@ -81,7 +81,7 @@ mod tests { } #[test] - fn dedeserialize_domain_response() { + fn deserialize_domain_response() { // Read the JSON contents of the file as an instance of `User`. let vobj: DomainResponse = read_user_from_file("test/test_domain_response.json").unwrap(); assert_eq!(vobj.domain_list.list.len(), 20); diff --git a/test/test_auth_bearer_response.json b/test/test_auth_bearer_response.json index a695ed0..78366e2 100644 --- a/test/test_auth_bearer_response.json +++ b/test/test_auth_bearer_response.json @@ -1,5 +1,5 @@ { - "access_token": "das.ist.ein.token", + "access_token": "ths.is.a.token", "token_type": "bearer", "expires_in": 14 } \ No newline at end of file