From 289687cf558faa10d75e34b257c8f1034b65ba56 Mon Sep 17 00:00:00 2001 From: Dmitry Lavrenov Date: Mon, 16 Sep 2024 18:50:40 +0300 Subject: [PATCH] Improve naming in tests --- crates/robonode-client/src/authenticate.rs | 12 ++++++------ crates/robonode-client/src/enroll.rs | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/robonode-client/src/authenticate.rs b/crates/robonode-client/src/authenticate.rs index 33d9e9446..9251f14a0 100644 --- a/crates/robonode-client/src/authenticate.rs +++ b/crates/robonode-client/src/authenticate.rs @@ -154,7 +154,7 @@ mod tests { } #[test] - fn response_deserialization() { + fn response_deserialization_before_2023_05() { let sample_response = serde_json::json!({ "authTicket": [1, 2, 3], "authTicketSignature": [4, 5, 6], @@ -172,7 +172,7 @@ mod tests { } #[test] - fn response_deserialization_containing_blob() { + fn response_deserialization() { let sample_response = serde_json::json!({ "authTicket": [1, 2, 3], "authTicketSignature": [4, 5, 6], @@ -191,7 +191,7 @@ mod tests { } #[tokio::test] - async fn mock_success() { + async fn mock_success_before_2023_05() { let mock_server = MockServer::start().await; let sample_request = AuthenticateRequest { @@ -223,7 +223,7 @@ mod tests { } #[tokio::test] - async fn mock_success_containing_blob() { + async fn mock_success() { let mock_server = MockServer::start().await; let sample_request = AuthenticateRequest { @@ -256,7 +256,7 @@ mod tests { } #[tokio::test] - async fn mock_error_response() { + async fn mock_error_response_before_2023_05() { let cases = [ ( StatusCode::BAD_REQUEST, @@ -318,7 +318,7 @@ mod tests { } #[tokio::test] - async fn mock_error_response_containing_blob() { + async fn mock_error_response() { let cases = [ ( StatusCode::BAD_REQUEST, diff --git a/crates/robonode-client/src/enroll.rs b/crates/robonode-client/src/enroll.rs index 0ecbd7592..1e4bb86bd 100644 --- a/crates/robonode-client/src/enroll.rs +++ b/crates/robonode-client/src/enroll.rs @@ -152,7 +152,7 @@ mod tests { } #[tokio::test] - async fn mock_success() { + async fn mock_success_before_2023_05() { let mock_server = MockServer::start().await; let sample_request = EnrollRequest { @@ -177,7 +177,7 @@ mod tests { } #[tokio::test] - async fn mock_success_containing_blob() { + async fn mock_success() { let mock_server = MockServer::start().await; let sample_request = EnrollRequest { @@ -205,7 +205,7 @@ mod tests { } #[tokio::test] - async fn mock_error_response() { + async fn mock_error_response_before_2023_05() { let cases = [ ( StatusCode::BAD_REQUEST, @@ -273,7 +273,7 @@ mod tests { } #[tokio::test] - async fn mock_error_response_containing_blob() { + async fn mock_error_response() { let cases = [ ( StatusCode::BAD_REQUEST,