From 35cc62d47136abdb5777795d707e7000e941ed7b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 14 Apr 2025 14:17:44 +0000 Subject: [PATCH 1/2] Update Rust crate mockito to v1 --- Cargo.lock | 214 ++++++++--------------------------------------------- Cargo.toml | 2 +- 2 files changed, 33 insertions(+), 183 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cbc9742..641bb47 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -247,21 +247,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "futures" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - [[package]] name = "futures-channel" version = "0.3.31" @@ -269,7 +254,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", - "futures-sink", ] [[package]] @@ -278,34 +262,6 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" -[[package]] -name = "futures-executor" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-io" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" - -[[package]] -name = "futures-macro" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "futures-sink" version = "0.3.31" @@ -324,16 +280,10 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ - "futures-channel", "futures-core", - "futures-io", - "futures-macro", - "futures-sink", "futures-task", - "memchr", "pin-project-lite", "pin-utils", - "slab", ] [[package]] @@ -369,25 +319,6 @@ version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" -[[package]] -name = "h2" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" -dependencies = [ - "bytes", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http 0.2.12", - "indexmap", - "slab", - "tokio", - "tokio-util", - "tracing", -] - [[package]] name = "h2" version = "0.4.8" @@ -399,7 +330,7 @@ dependencies = [ "fnv", "futures-core", "futures-sink", - "http 1.3.1", + "http", "indexmap", "slab", "tokio", @@ -413,17 +344,6 @@ version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" -[[package]] -name = "http" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" -dependencies = [ - "bytes", - "fnv", - "itoa", -] - [[package]] name = "http" version = "1.3.1" @@ -435,17 +355,6 @@ dependencies = [ "itoa", ] -[[package]] -name = "http-body" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" -dependencies = [ - "bytes", - "http 0.2.12", - "pin-project-lite", -] - [[package]] name = "http-body" version = "1.0.1" @@ -453,7 +362,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" dependencies = [ "bytes", - "http 1.3.1", + "http", ] [[package]] @@ -464,8 +373,8 @@ checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" dependencies = [ "bytes", "futures-core", - "http 1.3.1", - "http-body 1.0.1", + "http", + "http-body", "pin-project-lite", ] @@ -481,30 +390,6 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" -[[package]] -name = "hyper" -version = "0.14.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7" -dependencies = [ - "bytes", - "futures-channel", - "futures-core", - "futures-util", - "h2 0.3.26", - "http 0.2.12", - "http-body 0.4.6", - "httparse", - "httpdate", - "itoa", - "pin-project-lite", - "socket2", - "tokio", - "tower-service", - "tracing", - "want", -] - [[package]] name = "hyper" version = "1.6.0" @@ -514,10 +399,11 @@ dependencies = [ "bytes", "futures-channel", "futures-util", - "h2 0.4.8", - "http 1.3.1", - "http-body 1.0.1", + "h2", + "http", + "http-body", "httparse", + "httpdate", "itoa", "pin-project-lite", "smallvec", @@ -532,8 +418,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" dependencies = [ "futures-util", - "http 1.3.1", - "hyper 1.6.0", + "http", + "hyper", "hyper-util", "rustls", "rustls-pki-types", @@ -551,7 +437,7 @@ checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" dependencies = [ "bytes", "http-body-util", - "hyper 1.6.0", + "hyper", "hyper-util", "native-tls", "tokio", @@ -568,9 +454,9 @@ dependencies = [ "bytes", "futures-channel", "futures-util", - "http 1.3.1", - "http-body 1.0.1", - "hyper 1.6.0", + "http", + "http-body", + "hyper", "libc", "pin-project-lite", "socket2", @@ -854,17 +740,21 @@ dependencies = [ [[package]] name = "mockito" -version = "0.32.5" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "406f43768da5a859ce19bb0978fd8dc2167a7d9a52f3935c6a187242e1a4ff9f" +checksum = "7760e0e418d9b7e5777c0374009ca4c93861b9066f18cb334a20ce50ab63aa48" dependencies = [ "assert-json-diff", + "bytes", "colored", - "futures", - "hyper 0.14.32", - "lazy_static", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", "log", - "rand 0.8.5", + "rand", "regex", "serde_json", "serde_urlencoded", @@ -1056,7 +946,7 @@ checksum = "b820744eb4dc9b57a3398183639c511b5a26d2ed702cedd3febaa1393caa22cc" dependencies = [ "bytes", "getrandom 0.3.2", - "rand 0.9.0", + "rand", "ring", "rustc-hash", "rustls", @@ -1097,38 +987,17 @@ version = "5.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" -[[package]] -name = "rand" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", -] - [[package]] name = "rand" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3779b94aeb87e8bd4e834cee3650289ee9e0d5677f976ecdb6d219e5f4f6cd94" dependencies = [ - "rand_chacha 0.9.0", - "rand_core 0.9.3", + "rand_chacha", + "rand_core", "zerocopy", ] -[[package]] -name = "rand_chacha" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core 0.6.4", -] - [[package]] name = "rand_chacha" version = "0.9.0" @@ -1136,16 +1005,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" dependencies = [ "ppv-lite86", - "rand_core 0.9.3", -] - -[[package]] -name = "rand_core" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" -dependencies = [ - "getrandom 0.2.15", + "rand_core", ] [[package]] @@ -1206,11 +1066,11 @@ dependencies = [ "encoding_rs", "futures-core", "futures-util", - "h2 0.4.8", - "http 1.3.1", - "http-body 1.0.1", + "h2", + "http", + "http-body", "http-body-util", - "hyper 1.6.0", + "hyper", "hyper-rustls", "hyper-tls", "hyper-util", @@ -1426,15 +1286,6 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" -[[package]] -name = "signal-hook-registry" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" -dependencies = [ - "libc", -] - [[package]] name = "similar" version = "2.7.0" @@ -1600,7 +1451,6 @@ dependencies = [ "mio", "parking_lot", "pin-project-lite", - "signal-hook-registry", "socket2", "tokio-macros", "windows-sys 0.52.0", diff --git a/Cargo.toml b/Cargo.toml index 3126146..be58532 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ url = "2.5.4" [dev-dependencies] matches = "0.1.10" -mockito = "0.32.0" +mockito = "1.0.0" tokio = { version = "1.44.2", default-features = false, features = [ "macros", "rt-multi-thread", From 33b857fc40b0bdc12795bf0c74f35d6fe8d8955a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABlle=20Huisman?= Date: Mon, 14 Apr 2025 16:19:32 +0200 Subject: [PATCH 2/2] Remove mock variable bindings --- src/admin_portal/operations/generate_portal_link.rs | 2 +- src/core/types/url_encodable_vec.rs | 4 ++-- src/directory_sync/operations/delete_directory.rs | 2 +- src/directory_sync/operations/get_directory.rs | 4 ++-- src/directory_sync/operations/get_directory_group.rs | 4 ++-- src/directory_sync/operations/get_directory_user.rs | 4 ++-- src/directory_sync/operations/list_directories.rs | 4 ++-- src/directory_sync/operations/list_directory_groups.rs | 4 ++-- src/directory_sync/operations/list_directory_users.rs | 4 ++-- src/mfa/operations/challenge_factor.rs | 4 ++-- src/mfa/operations/enroll_factor.rs | 4 ++-- src/mfa/operations/verify_challenge.rs | 2 +- src/organizations/operations/create_organization.rs | 2 +- src/organizations/operations/delete_organization.rs | 2 +- src/organizations/operations/get_organization.rs | 2 +- src/organizations/operations/list_organizations.rs | 4 ++-- src/organizations/operations/update_organization.rs | 2 +- .../operations/create_passwordless_session.rs | 2 +- src/passwordless/operations/send_passwordless_session.rs | 2 +- src/sso/operations/delete_connection.rs | 2 +- src/sso/operations/get_connection.rs | 4 ++-- src/sso/operations/get_profile.rs | 2 +- src/sso/operations/get_profile_and_token.rs | 8 ++++---- src/sso/operations/list_connections.rs | 4 ++-- src/workos.rs | 2 +- 25 files changed, 40 insertions(+), 40 deletions(-) diff --git a/src/admin_portal/operations/generate_portal_link.rs b/src/admin_portal/operations/generate_portal_link.rs index f9e6466..359fa83 100644 --- a/src/admin_portal/operations/generate_portal_link.rs +++ b/src/admin_portal/operations/generate_portal_link.rs @@ -135,7 +135,7 @@ mod test { .unwrap() .build(); - let _mock = server.mock("POST", "/portal/generate_link") + server.mock("POST", "/portal/generate_link") .match_header("Authorization", "Bearer sk_example_123456789") .match_body(r#"{"organization":"org_01EHZNVPK3SFK441A1RGBFSHRT","intent":"sso"}"#) .with_status(201) diff --git a/src/core/types/url_encodable_vec.rs b/src/core/types/url_encodable_vec.rs index 2216422..38d0e19 100644 --- a/src/core/types/url_encodable_vec.rs +++ b/src/core/types/url_encodable_vec.rs @@ -59,7 +59,7 @@ mod test { let mut server = mockito::Server::new_async().await; - let _mock = server + server .mock("GET", "/") .match_query(Matcher::UrlEncoded( "items[]".to_string(), @@ -93,7 +93,7 @@ mod test { let mut server = mockito::Server::new_async().await; - let _mock = server + server .mock("GET", "/") .match_query(Matcher::UrlEncoded( "items[]".to_string(), diff --git a/src/directory_sync/operations/delete_directory.rs b/src/directory_sync/operations/delete_directory.rs index 3cccac7..7a7bbe5 100644 --- a/src/directory_sync/operations/delete_directory.rs +++ b/src/directory_sync/operations/delete_directory.rs @@ -95,7 +95,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock( "DELETE", "/directories/directory_01ECAZ4NV9QMV47GW873HDCX74", diff --git a/src/directory_sync/operations/get_directory.rs b/src/directory_sync/operations/get_directory.rs index 438cbe8..dffbcae 100644 --- a/src/directory_sync/operations/get_directory.rs +++ b/src/directory_sync/operations/get_directory.rs @@ -82,7 +82,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/directories/directory_01ECAZ4NV9QMV47GW873HDCX74") .match_header("Authorization", "Bearer sk_example_123456789") .with_status(200) @@ -123,7 +123,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/directories/directory_01ECAZ4NV9QMV47GW873HDCX74") .match_header("Authorization", "Bearer sk_example_123456789") .with_status(401) diff --git a/src/directory_sync/operations/get_directory_group.rs b/src/directory_sync/operations/get_directory_group.rs index e1ee1b9..069cc0c 100644 --- a/src/directory_sync/operations/get_directory_group.rs +++ b/src/directory_sync/operations/get_directory_group.rs @@ -90,7 +90,7 @@ mod test { .unwrap() .build(); - let _mock = server.mock( + server.mock( "GET", "/directory_groups/directory_group_01E64QTDNS0EGJ0FMCVY9BWGZT", ) @@ -133,7 +133,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock( "GET", "/directory_groups/directory_group_01E64QTDNS0EGJ0FMCVY9BWGZT", diff --git a/src/directory_sync/operations/get_directory_user.rs b/src/directory_sync/operations/get_directory_user.rs index 0375827..96404f6 100644 --- a/src/directory_sync/operations/get_directory_user.rs +++ b/src/directory_sync/operations/get_directory_user.rs @@ -90,7 +90,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock( "GET", "/directory_users/directory_user_01E1JG7J09H96KYP8HM9B0G5SJ", @@ -153,7 +153,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/directory_users/") .match_header("Authorization", "Bearer sk_example_123456789") .with_status(401) diff --git a/src/directory_sync/operations/list_directories.rs b/src/directory_sync/operations/list_directories.rs index 77f0fd8..9f0081a 100644 --- a/src/directory_sync/operations/list_directories.rs +++ b/src/directory_sync/operations/list_directories.rs @@ -101,7 +101,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/directories") .match_query(Matcher::UrlEncoded("order".to_string(), "desc".to_string())) .match_header("Authorization", "Bearer sk_example_123456789") @@ -162,7 +162,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/directories") .match_query(Matcher::UrlEncoded( "directory_type".to_string(), diff --git a/src/directory_sync/operations/list_directory_groups.rs b/src/directory_sync/operations/list_directory_groups.rs index 3708e3d..7d81490 100644 --- a/src/directory_sync/operations/list_directory_groups.rs +++ b/src/directory_sync/operations/list_directory_groups.rs @@ -109,7 +109,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/directory_groups") .match_query(Matcher::AllOf(vec![ Matcher::UrlEncoded("order".to_string(), "desc".to_string()), @@ -174,7 +174,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/directory_groups") .match_query(Matcher::AllOf(vec![ Matcher::UrlEncoded("order".to_string(), "desc".to_string()), diff --git a/src/directory_sync/operations/list_directory_users.rs b/src/directory_sync/operations/list_directory_users.rs index 52f8a92..be17df5 100644 --- a/src/directory_sync/operations/list_directory_users.rs +++ b/src/directory_sync/operations/list_directory_users.rs @@ -109,7 +109,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/directory_users") .match_query(Matcher::AllOf(vec![ Matcher::UrlEncoded("order".to_string(), "desc".to_string()), @@ -231,7 +231,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/directory_users") .match_query(Matcher::AllOf(vec![ Matcher::UrlEncoded("order".to_string(), "desc".to_string()), diff --git a/src/mfa/operations/challenge_factor.rs b/src/mfa/operations/challenge_factor.rs index bd49eb4..89e0d59 100644 --- a/src/mfa/operations/challenge_factor.rs +++ b/src/mfa/operations/challenge_factor.rs @@ -119,7 +119,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock( "POST", "/auth/factors/auth_factor_01FVYZ5QM8N98T9ME5BCB2BBMJ/challenge", @@ -167,7 +167,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock( "POST", "/auth/factors/auth_factor_01FVYZ5QM8N98T9ME5BCB2BBMJ/challenge", diff --git a/src/mfa/operations/enroll_factor.rs b/src/mfa/operations/enroll_factor.rs index 75952cc..799b2cd 100644 --- a/src/mfa/operations/enroll_factor.rs +++ b/src/mfa/operations/enroll_factor.rs @@ -166,7 +166,7 @@ mod test { .unwrap() .build(); - let _mock = server.mock("POST", "/auth/factors/enroll") + server.mock("POST", "/auth/factors/enroll") .match_header("Authorization", "Bearer sk_example_123456789") .match_body(r#"{"type":"totp","totp_user":"alan.turing@foo-corp.com","totp_issuer":"Foo Corp"}"#) .with_status(201) @@ -211,7 +211,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("POST", "/auth/factors/enroll") .match_header("Authorization", "Bearer sk_example_123456789") .match_body(r#"{"type":"sms","phone_number":"73"}"#) diff --git a/src/mfa/operations/verify_challenge.rs b/src/mfa/operations/verify_challenge.rs index e6b33be..de7056a 100644 --- a/src/mfa/operations/verify_challenge.rs +++ b/src/mfa/operations/verify_challenge.rs @@ -111,7 +111,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock( "POST", "/auth/challenges/auth_challenge_01FVYZWQTZQ5VB6BC5MPG2EYC5/verify", diff --git a/src/organizations/operations/create_organization.rs b/src/organizations/operations/create_organization.rs index efbf931..67994ca 100644 --- a/src/organizations/operations/create_organization.rs +++ b/src/organizations/operations/create_organization.rs @@ -115,7 +115,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("POST", "/organizations") .match_header("Authorization", "Bearer sk_example_123456789") .with_status(201) diff --git a/src/organizations/operations/delete_organization.rs b/src/organizations/operations/delete_organization.rs index 9cd5b8f..6303c94 100644 --- a/src/organizations/operations/delete_organization.rs +++ b/src/organizations/operations/delete_organization.rs @@ -93,7 +93,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("DELETE", "/organizations/org_01EHZNVPK3SFK441A1RGBFSHRT") .match_header("Authorization", "Bearer sk_example_123456789") .with_status(202) diff --git a/src/organizations/operations/get_organization.rs b/src/organizations/operations/get_organization.rs index a3dedf6..7baf8a2 100644 --- a/src/organizations/operations/get_organization.rs +++ b/src/organizations/operations/get_organization.rs @@ -87,7 +87,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/organizations/org_01EHZNVPK3SFK441A1RGBFSHRT") .match_header("Authorization", "Bearer sk_example_123456789") .with_status(200) diff --git a/src/organizations/operations/list_organizations.rs b/src/organizations/operations/list_organizations.rs index ffa2a36..431021c 100644 --- a/src/organizations/operations/list_organizations.rs +++ b/src/organizations/operations/list_organizations.rs @@ -115,7 +115,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/organizations") .match_query(Matcher::UrlEncoded("order".to_string(), "desc".to_string())) .match_header("Authorization", "Bearer sk_example_123456789") @@ -175,7 +175,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/organizations") .match_query(Matcher::AllOf(vec![ Matcher::UrlEncoded("order".to_string(), "desc".to_string()), diff --git a/src/organizations/operations/update_organization.rs b/src/organizations/operations/update_organization.rs index 28db8bb..43403a4 100644 --- a/src/organizations/operations/update_organization.rs +++ b/src/organizations/operations/update_organization.rs @@ -123,7 +123,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("PUT", "/organizations/org_01EHZNVPK3SFK441A1RGBFSHRT") .match_header("Authorization", "Bearer sk_example_123456789") .with_status(201) diff --git a/src/passwordless/operations/create_passwordless_session.rs b/src/passwordless/operations/create_passwordless_session.rs index 89524e4..7c85de1 100644 --- a/src/passwordless/operations/create_passwordless_session.rs +++ b/src/passwordless/operations/create_passwordless_session.rs @@ -116,7 +116,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("POST", "/passwordless/sessions") .match_header("Authorization", "Bearer sk_example_123456789") .match_body(r#"{"type":"MagicLink","email":"marcelina@foo-corp.com"}"#) diff --git a/src/passwordless/operations/send_passwordless_session.rs b/src/passwordless/operations/send_passwordless_session.rs index 05c8a46..a326135 100644 --- a/src/passwordless/operations/send_passwordless_session.rs +++ b/src/passwordless/operations/send_passwordless_session.rs @@ -90,7 +90,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock( "POST", "/passwordless/sessions/passwordless_session_01EG1BHJMVYMFBQYZTTC0N73CR/send", diff --git a/src/sso/operations/delete_connection.rs b/src/sso/operations/delete_connection.rs index d90fa72..bc4e8a0 100644 --- a/src/sso/operations/delete_connection.rs +++ b/src/sso/operations/delete_connection.rs @@ -95,7 +95,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("DELETE", "/connections/conn_01E2NPPCT7XQ2MVVYDHWGK1WN4") .match_header("Authorization", "Bearer sk_example_123456789") .with_status(202) diff --git a/src/sso/operations/get_connection.rs b/src/sso/operations/get_connection.rs index 5f25373..3058161 100644 --- a/src/sso/operations/get_connection.rs +++ b/src/sso/operations/get_connection.rs @@ -88,7 +88,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/connections/conn_01E4ZCR3C56J083X43JQXF3JK5") .match_header("Authorization", "Bearer sk_example_123456789") .with_status(200) @@ -136,7 +136,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/connections/conn_01E4ZCR3C56J083X43JQXF3JK5") .match_header("Authorization", "Bearer sk_example_123456789") .with_status(401) diff --git a/src/sso/operations/get_profile.rs b/src/sso/operations/get_profile.rs index 90f7226..233c3f7 100644 --- a/src/sso/operations/get_profile.rs +++ b/src/sso/operations/get_profile.rs @@ -77,7 +77,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/sso/profile") .match_header("Authorization", "Bearer 01DMEK0J53CVMC32CK5SE0KZ8Q") .with_status(200) diff --git a/src/sso/operations/get_profile_and_token.rs b/src/sso/operations/get_profile_and_token.rs index b8fcd93..81ab0de 100644 --- a/src/sso/operations/get_profile_and_token.rs +++ b/src/sso/operations/get_profile_and_token.rs @@ -153,7 +153,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("POST", "/sso/token") .match_body(Matcher::AllOf(vec![ Matcher::UrlEncoded("client_id".to_string(), "client_1234".to_string()), @@ -213,7 +213,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("POST", "/sso/token") .with_status(400) .with_body( @@ -246,7 +246,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("POST", "/sso/token") .with_status(400) .with_body( @@ -279,7 +279,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("POST", "/sso/token") .with_status(400) .with_body( diff --git a/src/sso/operations/list_connections.rs b/src/sso/operations/list_connections.rs index c1ab598..821b393 100644 --- a/src/sso/operations/list_connections.rs +++ b/src/sso/operations/list_connections.rs @@ -95,7 +95,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/connections") .match_query(Matcher::UrlEncoded("order".to_string(), "desc".to_string())) .match_header("Authorization", "Bearer sk_example_123456789") @@ -155,7 +155,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/connections") .match_query(Matcher::UrlEncoded( "connection_type".to_string(), diff --git a/src/workos.rs b/src/workos.rs index de82121..f049060 100644 --- a/src/workos.rs +++ b/src/workos.rs @@ -146,7 +146,7 @@ mod test { .unwrap() .build(); - let _mock = server + server .mock("GET", "/health") .match_header( "User-Agent",