commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
aa005d99c440a6c1826ed494bc720d42ac7e55d7 | Conrad Ludgate | 2022-02-25T23:12:39 | use deadpool 0.9 (#90)
* use deadpool 0.9
* fmt | diff --git a/Cargo.lock b/Cargo.lock
index 3f58941..711b84e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -92,12 +92,6 @@ version = "1.0.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1"
-[[package]]
-name = "arrayvec"
-v... | 5 | 28 | 75 |
339add0ee14469bdc4e9f61e789b45c18e43ad63 | Luca P | 2022-01-08T16:33:10 | (cargo-release) version 0.5.10 | diff --git a/Cargo.lock b/Cargo.lock
index e159f3d..3f58941 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2327,7 +2327,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.10-alpha.0"
+version = "0.5.10"
dependencies = [
"actix-rt",
"assert-json-diff",
diff --git a/Cargo.toml b/Cargo.toml
index e... | 2 | 2 | 2 |
0059e9b736aeecfab7935de5110f74f9a1e651b7 | Gurwinder Singh | 2022-01-08T16:31:29 | Fix body_json matching and implement Partial json matching (#83)
* Fix body_json matching and implement Partial json matching
* backward compat
* Move partial json matching out
* fix
* Directly convert to Value
* Update src/matchers.rs
Co-authored-by: Luca Palmieri <lucapalmieri1993@hotmail.com> | diff --git a/Cargo.lock b/Cargo.lock
index 842bbd8..e159f3d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -98,6 +98,16 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"
+[[package]]
+name = "assert-json-d... | 5 | 176 | 15 |
d49eb2ec1ced2fcd1a97436b24fb0ffe14930004 | Luca Palmieri | 2022-01-03T17:10:15 | (cargo-release) start next development iteration 0.5.10-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 40c45fc..842bbd8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.9"
+version = "0.5.10-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 24a57fd..... | 2 | 2 | 2 |
0a4748d3501bd339438f87caa729d620a7213cce | Luca Palmieri | 2022-01-03T17:09:28 | (cargo-release) version 0.5.9 | diff --git a/Cargo.lock b/Cargo.lock
index 644969e..40c45fc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.9-alpha.0"
+version = "0.5.9"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index a2227b6..2... | 2 | 2 | 2 |
0ed393dfea88feaaeda54f743a7332817887436f | beltram | 2022-01-03T17:08:50 | add 'with_priority()' to handle interlaced request matching conditions (#80) | diff --git a/src/mock.rs b/src/mock.rs
index b395028..05c04e8 100644
--- a/src/mock.rs
+++ b/src/mock.rs
@@ -262,7 +262,11 @@ pub struct Mock {
/// If `Some(max_n_matches)`, when `max_n_matches` matching incoming requests have been processed,
/// [`crate::mounted_mock::MountedMock::matches`] should start retu... | 4 | 149 | 2 |
1eaa00c8fa4707fa77235994aa22b4f722721137 | LukeMathWalker | 2021-10-31T17:07:23 | (cargo-release) start next development iteration 0.5.9-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 331476e..644969e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.8"
+version = "0.5.9-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 6fdb45f..a... | 2 | 2 | 2 |
74e8e2de10347b1143a3fffca3d7bc5df3464d34 | LukeMathWalker | 2021-10-31T17:06:09 | (cargo-release) version 0.5.8 | diff --git a/Cargo.lock b/Cargo.lock
index 8589e23..331476e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.8-alpha.0"
+version = "0.5.8"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 285534f..6... | 2 | 2 | 2 |
64f946f8bfef926496cf43f7a8bd14835b727974 | Rodrigo Candido Gryzinski | 2021-10-31T17:01:58 | Impl Respond for Fn (#78) | diff --git a/src/respond.rs b/src/respond.rs
index faf8523..c5df09f 100644
--- a/src/respond.rs
+++ b/src/respond.rs
@@ -41,7 +41,38 @@ use crate::{Request, ResponseTemplate};
///
/// You can use `Respond`, though, to implement responses that depend on the data in
/// the request matched by a [`Mock`].
-/// You co... | 1 | 41 | 1 |
a2fdbc431054943bedf631b38b15ebfaa60fbf64 | Luca Palmieri | 2021-09-05T12:08:56 | Fix formatting | diff --git a/src/mock_server/bare_server.rs b/src/mock_server/bare_server.rs
index eef438c..235f43a 100644
--- a/src/mock_server/bare_server.rs
+++ b/src/mock_server/bare_server.rs
@@ -175,8 +175,7 @@ pub(super) enum RequestRecording {
/// To improve your debugging experience it is strongly recommended to use [`Mock::... | 1 | 1 | 2 |
07f5e106a3a63d12adbeb1367dd3475001715e19 | Luca Palmieri | 2021-09-05T10:25:22 | (cargo-release) start next development iteration 0.5.8-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 9f9308a..8589e23 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.7"
+version = "0.5.8-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index b1b9e41..2... | 2 | 2 | 2 |
5335213ba7d0b4ccf1b9809bdb6841914799c468 | Luca Palmieri | 2021-09-05T10:24:16 | (cargo-release) version 0.5.7 | diff --git a/Cargo.lock b/Cargo.lock
index 9fa0987..9f9308a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.7-alpha.0"
+version = "0.5.7"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index ac75cbe..b... | 2 | 2 | 2 |
76601e3c8a93893010f5739506cb93d53e46ad79 | Luca Palmieri | 2021-09-05T10:23:24 | Add `must_use`. | diff --git a/src/mock_server/bare_server.rs b/src/mock_server/bare_server.rs
index 0eaa4ab..eef438c 100644
--- a/src/mock_server/bare_server.rs
+++ b/src/mock_server/bare_server.rs
@@ -175,6 +175,11 @@ pub(super) enum RequestRecording {
/// To improve your debugging experience it is strongly recommended to use [`Mock:... | 1 | 5 | 0 |
ea5cc89d16741f1124d5fd6ad2a86f45f484f3b2 | LukeMathWalker | 2021-07-20T08:05:25 | (cargo-release) start next development iteration 0.5.7-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 13adbd4..9fa0987 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.6"
+version = "0.5.7-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 44b2135..a... | 2 | 2 | 2 |
918186f7e794fe2d50e07eb21df35199606ac8c4 | LukeMathWalker | 2021-07-20T08:03:56 | (cargo-release) version 0.5.6 | diff --git a/Cargo.lock b/Cargo.lock
index 764f736..13adbd4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.6-alpha.0"
+version = "0.5.6"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 8d2b276..4... | 2 | 2 | 2 |
d29e6dddd3a48311754819de3acb973b94eab79b | Luca Palmieri | 2021-07-20T07:59:51 | Scoped mocks (#76)
* (cargo-release) version 0.5.5
* (cargo-release) start next development iteration 0.5.6-alpha.0
* Draft of (most of) the public API for scoped Mocks. Failing tests.
* Refactor internals to give MockGuard a handle over the state of the mock server.
* Green test (sub-optimal code).
* R... | diff --git a/Cargo.lock b/Cargo.lock
index 73d8158..764f736 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.5-alpha.0"
+version = "0.5.6-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index f7... | 11 | 579 | 91 |
c79c9147e0f251022138639fdb4358ccce992914 | Luca Palmieri | 2021-07-03T17:00:06 | (cargo-release) start next development iteration 0.5.5-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 343926d..73d8158 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.4"
+version = "0.5.5-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index c85ffda..f... | 2 | 2 | 2 |
98a623074ac7921061b6371a72b260e0ce18547f | Luca Palmieri | 2021-07-03T16:59:15 | (cargo-release) version 0.5.4 | diff --git a/Cargo.lock b/Cargo.lock
index 4ca3adb..343926d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2317,7 +2317,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.4-alpha.0"
+version = "0.5.4"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 3df6ef2..c... | 2 | 2 | 2 |
0c51f0ec5c5db6e8809dcbd90e83d6a96d0f4710 | Luca Palmieri | 2021-07-03T16:56:36 | Update lexical-core to avoid conflict on BITS with the standard library | diff --git a/Cargo.lock b/Cargo.lock
index 80d105a..4ca3adb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
[[package]]
name = "actix-macros"
version = "0.2.0"
@@ -1049,13 +1051,13 @@ checksum = "e2ab... | 1 | 5 | 3 |
55561d470e0bd507b7956cd1bd7aa375cc29e1ad | Tuetuopay | 2021-07-03T16:54:14 | request: Fix URI conversion when authority part is present (#73)
This fixes a panic that happened when the incoming request sets the full
path with authority (e.g. when using Tonic). The then-formatted URI was
incorrect, leading to ParseErrors, which turned into panics.
Testing for the port is enough to determine... | diff --git a/src/request.rs b/src/request.rs
index d634948..b704101 100644
--- a/src/request.rs
+++ b/src/request.rs
@@ -75,10 +75,9 @@ impl Request {
pub(crate) async fn from_hyper(request: hyper::Request<hyper::Body>) -> Request {
let (parts, body) = request.into_parts();
let method = parts.met... | 1 | 3 | 4 |
7d5e955f70768a16e9a218e6ad136291b32365cb | Luca Palmieri | 2021-06-05T12:03:10 | (cargo-release) start next development iteration 0.5.4-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 6b270a8..80d105a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2315,7 +2315,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.3"
+version = "0.5.4-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 95b895a..3... | 2 | 2 | 2 |
6b17b09d7f98bc1e1b34212238742084eefe7cea | Luca Palmieri | 2021-06-05T12:02:24 | (cargo-release) version 0.5.3 | diff --git a/Cargo.lock b/Cargo.lock
index 5c26ae1..6b270a8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2315,7 +2315,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.3-alpha.0"
+version = "0.5.3"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 27bdac9..9... | 2 | 2 | 2 |
0c2a7272b35134ec9e8589a25a6f115ead3ffd12 | apiraino | 2021-06-05T12:01:54 | Remove textwrap dependency (#71)
* cleanup whitespaces
* remove textwrap dependency
Co-authored-by: Luca Palmieri <contact@lpalmieri.com> | diff --git a/Cargo.lock b/Cargo.lock
index 98b111e..5c26ae1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1747,12 +1747,6 @@ version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"
-[[package]]
-name = "smawk"
-v... | 3 | 9 | 37 |
9a74bcbd6eb111e5b08a7480363438eb26810643 | apiraino | 2021-06-02T07:52:55 | update dependencies (#70) | diff --git a/Cargo.lock b/Cargo.lock
index 7f8676d..98b111e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,9 +2,9 @@
# It is not intended for manual editing.
[[package]]
name = "actix-macros"
-version = "0.2.0-beta.1"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3... | 2 | 80 | 50 |
224f618d3a44460ee7d2017b236dc3317eb13eda | LukeMathWalker | 2021-03-20T14:21:16 | (cargo-release) start next development iteration 0.5.3-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 65002b7..7f8676d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2307,7 +2307,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.2"
+version = "0.5.3-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 4f38387..7... | 2 | 2 | 2 |
358ecdc5285508be4971aeb32d9b949e07d8a33c | LukeMathWalker | 2021-03-20T14:19:33 | (cargo-release) version 0.5.2 | diff --git a/Cargo.lock b/Cargo.lock
index d81a6cc..65002b7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2307,7 +2307,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.2-alpha.0"
+version = "0.5.2"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index a30d8d2..4... | 2 | 2 | 2 |
486e90e0800a31a47392f158ad003b5cfc2c0b21 | beltram | 2021-03-20T14:15:29 | feat: support multi values request headers. Fixes wiremock::Request conversion from hyper::Request was not converting comma separated header values into HeaderValues. Introduced 'headers' to create an exact header matcher for multi values headers. (#60) | diff --git a/src/matchers.rs b/src/matchers.rs
index b9bdd38..38915ac 100644
--- a/src/matchers.rs
+++ b/src/matchers.rs
@@ -8,7 +8,7 @@
//!
//! Check [`Match`]'s documentation for examples.
use crate::{Match, Request};
-use http_types::headers::{HeaderName, HeaderValue};
+use http_types::headers::{HeaderName, Heade... | 3 | 151 | 16 |
c358ee803f342af62b5c0ac8f754a738983de4bf | LukeMathWalker | 2021-02-24T19:36:53 | (cargo-release) start next development iteration 0.5.2-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 529d544..d81a6cc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2307,7 +2307,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.1"
+version = "0.5.2-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index a1ebfa7..a... | 2 | 2 | 2 |
d9ca0eb1594cef2c5a866797450016cb8529cec8 | LukeMathWalker | 2021-02-24T19:35:48 | (cargo-release) version 0.5.1 | diff --git a/Cargo.lock b/Cargo.lock
index a70055d..529d544 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2307,7 +2307,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.1-alpha.0"
+version = "0.5.1"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 4670684..a... | 2 | 2 | 2 |
933da6ad045a7e561656fa0706114faf27173980 | beltram | 2021-02-24T19:35:14 | feat: add hyper request port into wiremock request (#59) | diff --git a/src/request.rs b/src/request.rs
index eff3812..42ce45e 100644
--- a/src/request.rs
+++ b/src/request.rs
@@ -73,7 +73,13 @@ impl Request {
pub(crate) async fn from_hyper(request: hyper::Request<hyper::Body>) -> Request {
let (parts, body) = request.into_parts();
let method = parts.met... | 1 | 7 | 1 |
b24de4c1d8eed0a7e1257ac05f17bd407d539450 | LukeMathWalker | 2021-02-22T14:36:37 | (cargo-release) start next development iteration 0.5.1-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 9b99926..a70055d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2307,7 +2307,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.0"
+version = "0.5.1-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 8fb2f12..4... | 2 | 2 | 2 |
32de8de3401a1d38fe33c5bd295b9344fc0ea126 | LukeMathWalker | 2021-02-22T14:35:44 | (cargo-release) version 0.5.0 | diff --git a/Cargo.lock b/Cargo.lock
index e1c861c..9b99926 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2307,7 +2307,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.5.0-alpha.0"
+version = "0.5.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 34e3f7a..8... | 2 | 2 | 2 |
290da00ed0b9839784cb647975172ff86d873699 | LukeMathWalker | 2021-02-22T14:32:00 | Rename matcher. | diff --git a/src/matchers.rs b/src/matchers.rs
index 244be62..b9bdd38 100644
--- a/src/matchers.rs
+++ b/src/matchers.rs
@@ -670,15 +670,17 @@ impl Match for QueryParamExactMatcher {
}
}
-/// Match the json structure of the body of a request.
+/// Match an incoming request if its body is encoded as JSON and can... | 1 | 12 | 7 |
d8ec98e6b208c3016f67c70b1667aec359f03a8a | Luca Palmieri | 2021-02-21T20:20:42 | Add record functionality to MockServer (#57)
* Add received_requests method (dummy body).
* Add doc test for received requests (red).
* Add baseline implementation of received requests.
* Add more assertions on the received request.
* Add documentation + no request test + simplify existing documentation te... | diff --git a/Cargo.lock b/Cargo.lock
index 56036c8..e1c861c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1717,6 +1717,12 @@ version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"
+[[package]]
+name = "smawk"
+v... | 11 | 383 | 63 |
1d8d7bf2c90f44c8f9856cc72c35733ecdc38ed0 | Michael-J-Ward | 2021-02-15T09:18:21 | adds matchers::body_json_structure that matches on structure and instead of value (#52) | diff --git a/src/matchers.rs b/src/matchers.rs
index 3cb5019..3a11e6f 100644
--- a/src/matchers.rs
+++ b/src/matchers.rs
@@ -669,3 +669,62 @@ impl Match for QueryParamExactMatcher {
.any(|q| q.0 == self.0.as_str() && q.1 == self.1.as_str())
}
}
+
+/// Match the json structure of the body of a request... | 1 | 59 | 0 |
40b9a622a30844212139c3cf06f4ca5b5f222a06 | LukeMathWalker | 2021-01-24T14:41:23 | (cargo-release) start next development iteration 0.4.10-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 5b08315..56036c8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2285,7 +2285,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.9"
+version = "0.4.10-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index a6528c6..... | 2 | 2 | 2 |
f5ebeb6212236efacbfcd002bc71ada9b23d76ad | LukeMathWalker | 2021-01-24T14:40:28 | (cargo-release) version 0.4.9 | diff --git a/Cargo.lock b/Cargo.lock
index 5870e1f..5b08315 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2285,7 +2285,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.9-alpha.0"
+version = "0.4.9"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 06799df..a... | 2 | 2 | 2 |
4ba7bcadc19ff3d2a7a97d1cf091bed14b7a8f5d | Luca Palmieri | 2021-01-24T14:39:40 | Fix test hangs when using delays and timeouts. (#51)
Co-authored-by: LukeMathWalker <contact@palmieri.com> | diff --git a/src/mock_server/hyper.rs b/src/mock_server/hyper.rs
index 9f3de7e..94a18ee 100644
--- a/src/mock_server/hyper.rs
+++ b/src/mock_server/hyper.rs
@@ -19,12 +19,24 @@ pub(crate) async fn run_server(
let mock_set = mock_set.clone();
async move {
let wiremo... | 3 | 53 | 7 |
b7feb21cd047176c819cde4801071b717199923d | Luca Palmieri | 2021-01-20T12:25:46 | (cargo-release) start next development iteration 0.4.9-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index dbe3fb2..5870e1f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2285,7 +2285,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.8"
+version = "0.4.9-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index d5f47c3..0... | 2 | 2 | 2 |
4873aac115976331ee26b952ac1c5ffcb4a4ef15 | Luca Palmieri | 2021-01-20T12:24:54 | (cargo-release) version 0.4.8 | diff --git a/Cargo.lock b/Cargo.lock
index 046041b..dbe3fb2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2285,7 +2285,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.8-alpha.0"
+version = "0.4.8"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 9530790..d... | 2 | 2 | 2 |
49a979e8a5211df853beab4183482050a3daf73f | Alex Butler | 2021-01-20T12:24:30 | Make verify public (#50) | diff --git a/Cargo.lock b/Cargo.lock
index aed2fe9..046041b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -132,12 +132,15 @@ dependencies = [
[[package]]
name = "async-global-executor"
-version = "1.4.3"
+version = "2.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "73079b49cd26b8fd... | 2 | 55 | 44 |
ff3ca14f039b7e64965dcb702333705f961eefa8 | LukeMathWalker | 2021-01-16T16:39:33 | (cargo-release) start next development iteration 0.4.8-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 8471d93..aed2fe9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2274,7 +2274,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.7"
+version = "0.4.8-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index d76d41b..9... | 2 | 2 | 2 |
f139f946ccd1b0451f15fe2ebf02acc42043750a | LukeMathWalker | 2021-01-16T16:38:40 | (cargo-release) version 0.4.7 | diff --git a/Cargo.lock b/Cargo.lock
index 8414874..8471d93 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2274,7 +2274,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.7-alpha.0"
+version = "0.4.7"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 2d2eced..d... | 2 | 2 | 2 |
8f73073c419ee893919bc0b70359f6eb691a58b9 | Luca Palmieri | 2021-01-16T16:38:21 | Add `AnyMatcher`. (#49)
Co-authored-by: LukeMathWalker <contact@palmieri.com> | diff --git a/src/matchers.rs b/src/matchers.rs
index 6be04b8..3cb5019 100644
--- a/src/matchers.rs
+++ b/src/matchers.rs
@@ -87,6 +87,52 @@ impl Match for MethodExactMatcher {
}
}
+#[derive(Debug)]
+/// Match all incoming requests, regardless of their method, path, headers or body.
+///
+/// You can use it to... | 1 | 46 | 0 |
f3d04c1df35d57016e25bbdbef636d7e91b95710 | Luca Palmieri | 2021-01-14T10:24:16 | (cargo-release) start next development iteration 0.4.7-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index a31117b..8414874 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2274,7 +2274,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.6"
+version = "0.4.7-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 15b54e3..2... | 2 | 2 | 2 |
8038c8ad81f4cee8039d88ba7f7cde0b0f474960 | Luca Palmieri | 2021-01-14T10:23:26 | (cargo-release) version 0.4.6 | diff --git a/Cargo.lock b/Cargo.lock
index 015690f..a31117b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2274,7 +2274,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.6-alpha.0"
+version = "0.4.6"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index f382755..1... | 2 | 2 | 2 |
e5c5967c96ad3b9d3fd61347907030fda73be2ad | Luca Palmieri | 2021-01-14T10:23:14 | Update to deadpool 0.7 to remove tokio 0.3 from the dependency tree | diff --git a/Cargo.lock b/Cargo.lock
index 22a5113..015690f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -17,7 +17,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac24f3f660d4c394cc6d24272e526083c257d6045d3be76a9d0a76be5cb56515"
dependencies = [
"actix-macros",
- "tokio 1.0.1",
+ "t... | 2 | 40 | 50 |
db45ef45256603efa89c2af6df40ef1c261d9a98 | Luca Palmieri | 2021-01-12T12:33:22 | (cargo-release) start next development iteration 0.4.6-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index fb3c2c3..22a5113 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2284,7 +2284,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.5"
+version = "0.4.6-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 1879c23..d... | 2 | 2 | 2 |
90edcc6947c9c18eb3cdffdd0260f9e83519a0de | Luca Palmieri | 2021-01-12T12:32:33 | (cargo-release) version 0.4.5 | diff --git a/Cargo.lock b/Cargo.lock
index 6648671..fb3c2c3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2284,7 +2284,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.5-alpha.0"
+version = "0.4.5"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index f348f68..1... | 2 | 2 | 2 |
c63ce68a51023f60189c8ed3963948236385511b | Alex Butler | 2021-01-12T12:31:46 | Fix compile, use hyper "full" feature (#48) | diff --git a/Cargo.lock b/Cargo.lock
index c3a25da..6648671 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -85,9 +85,9 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.36"
+version = "1.0.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68803225a7b13e47191bab76f2687382b... | 2 | 178 | 110 |
68ff71a2a9d56dc6e187b296582446f9f603b071 | LukeMathWalker | 2021-01-12T09:09:49 | (cargo-release) start next development iteration 0.4.5-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index bc1524f..c3a25da 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2216,7 +2216,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.4"
+version = "0.4.5-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 02b7c02..9... | 2 | 2 | 2 |
92c7bc99de484b0963415070bfc73ccb62c416ab | Marco Ieni | 2020-12-27T19:18:39 | Cargo.toml: remove "readme" field (#44) | diff --git a/Cargo.toml b/Cargo.toml
index ae2ef7c..70b206f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,7 +8,6 @@ license = "MIT/Apache-2.0"
repository = "https://github.com/LukeMathWalker/wiremock-rs"
documentation = "https://docs.rs/wiremock/"
-readme = "README.md"
description = "HTTP mocking to test Rust a... | 1 | 0 | 1 |
55d484d0d3f9089c925b91d96e2f421b70cf18fd | Marco Ieni | 2020-12-26T18:16:17 | fix docs (#43) | diff --git a/src/mock.rs b/src/mock.rs
index 8a12938..f80018b 100644
--- a/src/mock.rs
+++ b/src/mock.rs
@@ -208,11 +208,11 @@ impl Debug for Matcher {
pub struct Mock {
pub(crate) matchers: Vec<Matcher>,
pub(crate) response: Box<dyn Respond>,
- // Maximum number of times (inclusive) we should return a re... | 1 | 5 | 5 |
cdc657a9fd3cd49fe5f77794b2f8a7854e4e8129 | Marco Ieni | 2020-12-26T11:23:08 | remove old comment (#41) | diff --git a/src/active_mock.rs b/src/active_mock.rs
index 5702c2e..9fca077 100644
--- a/src/active_mock.rs
+++ b/src/active_mock.rs
@@ -42,7 +42,6 @@ impl ActiveMock {
/// Verify if this mock has verified the expectations set at creation time
/// over the number of invocations.
- /// Returns true if exp... | 1 | 0 | 1 |
16980ac6fbe73fc76a3741315edf096789a73c7e | Marco Ieni | 2020-12-25T21:36:05 | Print info when expectations are not verified (#40)
* Print info when expectations are not verified
* add comments
* Update src/verification.rs
Co-authored-by: Luca Palmieri <LukeMathWalker@users.noreply.github.com>
* Update src/mock.rs
Co-authored-by: Luca Palmieri <LukeMathWalker@users.noreply.github.... | diff --git a/src/active_mock.rs b/src/active_mock.rs
index 5e7e6a0..5702c2e 100644
--- a/src/active_mock.rs
+++ b/src/active_mock.rs
@@ -1,4 +1,4 @@
-use crate::{Match, Mock, Request, ResponseTemplate};
+use crate::{verification::VerificationReport, Match, Mock, Request, ResponseTemplate};
/// Given the behaviour sp... | 8 | 109 | 26 |
a18acb0194b4c7f35854f6acd3e899e037a4d401 | LukeMathWalker | 2020-12-24T14:55:33 | (cargo-release) start next development iteration 0.4.4-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 122f0e7..87c8b68 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2316,7 +2316,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.3"
+version = "0.4.4-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 5090f4f..a... | 2 | 2 | 2 |
7b43f07638b23c45922fe5641267767cfb3f04b4 | LukeMathWalker | 2020-12-24T14:54:40 | (cargo-release) version 0.4.3 | diff --git a/Cargo.lock b/Cargo.lock
index df6687a..122f0e7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2316,7 +2316,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.3-alpha.0"
+version = "0.4.3"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index eb65a93..5... | 2 | 2 | 2 |
5c128e4ba2beb1585a374bade5ece643816abdb8 | Luca Palmieri | 2020-12-24T14:47:14 | Add start_on method on MockServer. (#39)
Co-authored-by: LukeMathWalker <contact@palmieri.com> | diff --git a/src/mock_server/bare_server.rs b/src/mock_server/bare_server.rs
index 8bfd5be..76b5515 100644
--- a/src/mock_server/bare_server.rs
+++ b/src/mock_server/bare_server.rs
@@ -26,9 +26,15 @@ impl BareMockServer {
/// port available on your local machine, binding it to a `TcpListener` and then
/// ass... | 3 | 66 | 10 |
03b4cf56bfd0a9ffa0778de6401a8020cacabdf0 | Luca Palmieri | 2020-12-22T14:26:07 | (cargo-release) start next development iteration 0.4.3-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 5fd30fb..df6687a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2316,7 +2316,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.2"
+version = "0.4.3-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index f17df5b..e... | 2 | 2 | 2 |
8ef45efe0b868e726f3feb235029d69d168056e7 | Moritz Gunz | 2020-12-22T14:19:02 | Add missing tokio feature for task::LocalSet (#38) | diff --git a/Cargo.toml b/Cargo.toml
index 90bdb77..e68b2a5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,7 +28,7 @@ regex = "1"
futures-timer = "3.0.2"
futures = "0.3.5"
hyper = "0.13.8"
-tokio = { version = "0.2", features = ["rt-core"] }
+tokio = { version = "0.2", features = ["rt-core", "rt-util"] }
deadpool ... | 1 | 1 | 1 |
ad0f91e6690f3f3e7875a8fcb86e7d962fac9deb | LukeMathWalker | 2020-12-21T09:54:00 | Cut non-alpha release. | diff --git a/Cargo.lock b/Cargo.lock
index 52f1a5b..519618a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2316,7 +2316,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.0-alpha.2"
+version = "0.4.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index a2610fa..1... | 2 | 2 | 2 |
6fe2bf08267608b69f412a9bbade904324b579af | LukeMathWalker | 2020-12-21T09:49:31 | Remove deprecated `set_body` method. | diff --git a/src/response_template.rs b/src/response_template.rs
index e9eb2e0..2862a71 100644
--- a/src/response_template.rs
+++ b/src/response_template.rs
@@ -122,20 +122,6 @@ impl ResponseTemplate {
self
}
- /// Set the response body with bytes.
- ///
- /// It sets "Content-Type" to "applica... | 1 | 0 | 14 |
5d91173da70ca547a304a762b0b89cb5c1716ff6 | Luca Palmieri | 2020-12-21T09:47:46 | Add server pooling (#34)
* Improve docs.
* Use object pooling.
* Remove old print statements.
* Restructure module.
Add documentation on pooling.
Co-authored-by: LukeMathWalker <contact@palmieri.com> | diff --git a/Cargo.lock b/Cargo.lock
index fa6ec12..52f1a5b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -22,7 +22,7 @@ dependencies = [
"futures-channel",
"futures-util",
"smallvec",
- "tokio",
+ "tokio 0.2.24",
]
[[package]]
@@ -109,6 +109,12 @@ version = "1.0.36"
source = "registry+https://github.com/rust-... | 10 | 295 | 69 |
92c4604c35bc4d4c128dc171b1ea29021bfa8788 | Marco Ieni | 2020-12-20T20:46:12 | simpler docs (#30)
Co-authored-by: tl-marco-ieni <marco.ieni@truelayer.com> | diff --git a/src/lib.rs b/src/lib.rs
index bae198b..3c687fe 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -113,12 +113,8 @@
//!
//! More request matchers can be added to those provided out-of-the-box to handle common usecases.
//!
-//! [`MockServer`]: struct.MockServer.html
-//! [`Mock`]: struct.Mock.html
-//! [`Match... | 5 | 28 | 54 |
e82571b8f28d4ffbf190428ca9fd1f4aae9eb23f | Luca Palmieri | 2020-11-15T15:32:15 | Cut a release | diff --git a/Cargo.lock b/Cargo.lock
index 402e24e..2818dda 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2115,7 +2115,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.0-alpha.1"
+version = "0.4.0-alpha.2"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index c6... | 2 | 2 | 2 |
594bc1de17020ddc9aa1787b7ee5c8a87f751453 | Luca Palmieri | 2020-11-15T15:20:47 | Do not unwrap the Option returned by `insert_header`. (#27)
Add regression test for `insert_header`. | diff --git a/src/response_template.rs b/src/response_template.rs
index c22397e..86639a9 100644
--- a/src/response_template.rs
+++ b/src/response_template.rs
@@ -78,6 +78,36 @@ impl ResponseTemplate {
/// - if there are no header values with `key` as header name, it will insert one;
/// - if there are already ... | 1 | 31 | 3 |
6a3506cb7f64d52a506273caf970130af71fc6e2 | Luca Palmieri | 2020-09-29T08:42:00 | (cargo-release) version 0.4.0-alpha.1 | diff --git a/Cargo.lock b/Cargo.lock
index 444c168..402e24e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2115,7 +2115,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.4.0-alpha.0"
+version = "0.4.0-alpha.1"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index c1... | 2 | 2 | 2 |
45ab025d8ce66824d0f11f179f2a2777b5e3f90a | Luca Palmieri | 2020-09-29T08:41:12 | Update version | diff --git a/Cargo.lock b/Cargo.lock
index 6ab086c..444c168 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2115,7 +2115,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.3.1-alpha.0"
+version = "0.4.0-alpha.0"
dependencies = [
"actix-rt",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index d7... | 2 | 2 | 2 |
4cef26bbf5b0f06e6ad5c24b27f5a4774dd2dced | Luca Palmieri | 2020-09-29T08:40:47 | Add graceful shutdown. | diff --git a/src/lib.rs b/src/lib.rs
index 7fd6059..bae198b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -131,7 +131,7 @@ mod mock_server;
mod mock_set;
mod request;
mod response_template;
-mod server_actor;
+mod server;
pub use mock::{Match, Mock, MockBuilder, Times};
pub use mock_server::MockServer;
diff --git ... | 3 | 21 | 6 |
85d89eb6d6ef94dff8eed4a42705fde14777f027 | Luca Palmieri | 2020-09-28T22:42:08 | Move from async-h1 to hyper. (#22) | diff --git a/Cargo.lock b/Cargo.lock
index bc59f82..6ab086c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,84 +1,59 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
-name = "addr2line"
-version = "0.13.0"
-source = "registry+https://github.com/rust-lang/crates... | 9 | 302 | 787 |
0a4969eaf7dc249c8f5f4a4ce909c5a01dd33232 | Luca Palmieri | 2020-09-16T19:09:32 | (cargo-release) start next development iteration 0.3.1-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 2e969a5..bc59f82 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2578,7 +2578,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.3.0"
+version = "0.3.1-alpha.0"
dependencies = [
"async-h1",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index cc2d2b9..6... | 2 | 2 | 2 |
ecfb64f149ec5cde691f407b5b19da8f7d27cba6 | Luca Palmieri | 2020-09-16T18:16:37 | (cargo-release) start next development iteration 0.2.6-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index ecda661..f774cfd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1757,7 +1757,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.2.5"
+version = "0.2.6-alpha.0"
dependencies = [
"async-h1",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 040c1b2..4... | 2 | 2 | 2 |
d303fe880d60f2e381132adc2ec9903d3f2fb0c0 | James Smith | 2020-09-16T18:02:56 | Add header_exist_matcher. (#17)
* Add header_exist_matcher.
* Format and lint fixes.
* Update src/matchers.rs
Co-authored-by: Luca Palmieri <LukeMathWalker@users.noreply.github.com> | diff --git a/Cargo.lock b/Cargo.lock
index f64d7be..db77ef0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1757,7 +1757,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.2.3"
+version = "0.2.4"
dependencies = [
"async-h1",
"async-std",
diff --git a/src/matchers.rs b/src/matchers.rs
index d1c8fc7.... | 2 | 60 | 1 |
f792bbfb2b826d504c9a7d75f243ea7d20cc6d8a | Nate Mara | 2020-09-16T17:55:45 | Derive Clone for Request (#20)
With the current API, it is not possible to save owned values of Request
in a Match implementation, because Match is only given a reference to a
Request, and Request does not implement Clone. If you wanted to store a
list of Requests and iterate over them and make assertions on them a... | diff --git a/src/request.rs b/src/request.rs
index d58ee8f..e3aa325 100644
--- a/src/request.rs
+++ b/src/request.rs
@@ -15,13 +15,13 @@ use std::{collections::HashMap, fmt};
/// ### Implementation notes:
/// We can't use `http_types::Request` directly in our `Match::matches` signature:
/// it requires having mutabl... | 1 | 2 | 2 |
cc4fbe1d27d439bd9355800924d4a8bfea71927c | Luca Palmieri | 2020-07-31T06:17:25 | update version in Cargo.toml | diff --git a/Cargo.lock b/Cargo.lock
index 393525b..f64d7be 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1757,7 +1757,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.2.3-alpha.0"
+version = "0.2.3"
dependencies = [
"async-h1",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index a3b2e93..5... | 2 | 2 | 2 |
e45b9b6cce325928316499b821b3018b825ec8e8 | David Hedin | 2020-07-31T06:13:17 | Fix #14: MockServer expectations abort during unrelated panic (#16)
* Fix #14: MockServer expectations abort during unrelated panic
* Use same message for panic and log
Co-authored-by: David Hedin <dhedin@skylla.tech> | diff --git a/src/mock_server.rs b/src/mock_server.rs
index f82fb5c..59e855a 100644
--- a/src/mock_server.rs
+++ b/src/mock_server.rs
@@ -239,7 +239,11 @@ impl Drop for MockServer {
fn drop(&mut self) {
debug!("Verify mock expectations.");
if !run!(self.verify()) {
- panic!("Verificatio... | 2 | 21 | 1 |
9a98d486b90695c7056c67f3fc87379c8806a163 | Luca Palmieri | 2020-07-10T20:45:36 | Update version | diff --git a/Cargo.toml b/Cargo.toml
index 7454bd5..a3b2e93 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "wiremock"
-version = "0.2.3-alpha.0"
+version = "0.2.3"
authors = ["Luca Palmieri <rust@lpalmieri.com>"]
edition = "2018" | 1 | 1 | 1 |
3625edbe2d543eb6a831c3c4e3eaafb6e1374653 | Andi | 2020-07-10T20:43:42 | Add body contains matcher (#15)
* Add body contains matcher
* Don't panic on invalid utf8 | diff --git a/src/matchers.rs b/src/matchers.rs
index d43977f..d1c8fc7 100644
--- a/src/matchers.rs
+++ b/src/matchers.rs
@@ -13,9 +13,11 @@
use crate::{Match, Request};
use http_types::headers::{HeaderName, HeaderValue};
use http_types::Method;
+use log::debug;
use regex::Regex;
use serde::Serialize;
use std::con... | 1 | 73 | 0 |
143f72715e005d256e5e824c2da9ce32aac820e2 | Luca Palmieri | 2020-06-01T21:55:55 | (cargo-release) start next development iteration 0.2.3-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 2af2b38..393525b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1757,7 +1757,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.2.2"
+version = "0.2.3-alpha.0"
dependencies = [
"async-h1",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 0766995..7... | 2 | 2 | 2 |
9e4f81552c4878e1f2d8d83d31744579e32aeb3f | Luca Palmieri | 2020-06-01T21:54:10 | (cargo-release) version 0.2.2 | diff --git a/Cargo.lock b/Cargo.lock
index f596b7a..2af2b38 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1757,7 +1757,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.2.2-alpha.0"
+version = "0.2.2"
dependencies = [
"async-h1",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 3e1a246..0... | 2 | 2 | 2 |
4305a4d713b1db3c6be9e05c9f5380f9b83a4a04 | Jeremy Lempereur | 2020-05-30T22:24:38 | fix 7 - runtime mixes. (#8)
It was quite a fun one to track down. It turns out async runtimes mixing sometimes don't behave well.
Here we're trying to make sure async_std is going to drive the mock server listener. | diff --git a/src/server_actor.rs b/src/server_actor.rs
index 046408a..a1dbb7f 100644
--- a/src/server_actor.rs
+++ b/src/server_actor.rs
@@ -33,7 +33,7 @@ impl ServerActor {
msg: (ChildRef, TcpListener) => {
let (mock_actor, listener) = msg;
... | 2 | 41 | 1 |
c52465a40048c162f8e072c9a725f33264ee8617 | Luca Palmieri | 2020-05-22T08:52:09 | (cargo-release) start next development iteration 0.2.2-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 5bae7d7..f596b7a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1757,7 +1757,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.2.1"
+version = "0.2.2-alpha.0"
dependencies = [
"async-h1",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index c824400..3... | 2 | 2 | 2 |
2d47cf69fb4a3de5d2ccdec335f217f7a48fb03b | Luca Palmieri | 2020-05-22T08:51:10 | (cargo-release) version 0.2.1 | diff --git a/Cargo.lock b/Cargo.lock
index 0f3abeb..5bae7d7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1757,7 +1757,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.2.1-alpha.0"
+version = "0.2.1"
dependencies = [
"async-h1",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index c735301..c... | 2 | 2 | 2 |
cc27cd866d448c2ec80d2a73b806b2a17680fe30 | Luca Palmieri | 2020-05-22T08:49:32 | Add set_delay to help testing timeouts. (#6) | diff --git a/Cargo.lock b/Cargo.lock
index 209a85e..0f3abeb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1763,6 +1763,7 @@ dependencies = [
"async-std",
"bastion",
"bastion-executor",
+ "futures-timer 3.0.2",
"http-types",
"lightproc",
"log",
diff --git a/Cargo.toml b/Cargo.toml
index 9befb31..c735301 10064... | 7 | 76 | 4 |
6f11f3bc7f3d8f49dd4dcf15cbd9f76c6cda8a5a | Andi | 2020-05-21T14:42:47 | Add set_body_raw (#5)
* Add set_body_raw
This method allows to set a body and the content type to pass any payload as Vec<u8>, without having to overwrite the content type by calling `insert_header` with `Content-Type`.
* Link to set_body_raw
* Add example for set_body_raw | diff --git a/src/response_template.rs b/src/response_template.rs
index b67c995..834f2bb 100644
--- a/src/response_template.rs
+++ b/src/response_template.rs
@@ -107,6 +107,9 @@ impl ResponseTemplate {
/// Set the response body with bytes.
///
/// It sets "Content-Type" to "application/octet-stream".
+ ... | 1 | 60 | 0 |
41deffb7ccadae651e7ab6c974a0761f6e98f7ca | Andi | 2020-05-21T08:50:41 | Add PathRegexMatcher (#4)
* Add PathRegexMatcher
This matcher matches a path against a regular expression.
This is useful if the request is sent to a path where the exact string of the path is not known, for example if the path contains any kind of ID that is randomly generated for each request.
* Use a more ... | diff --git a/Cargo.lock b/Cargo.lock
index aec20e0..209a85e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,14 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+[[package]]
+name = "aho-corasick"
+version = "0.7.10"
+source = "registry+https://github.com/rust-lang/crat... | 3 | 117 | 0 |
48f68a1d890cbafdbeeefed7c6e0940f6a21353a | Luca Palmieri | 2020-05-11T19:03:17 | (cargo-release) start next development iteration 0.2.1-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 305d669..aec20e0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1721,7 +1721,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.2.0"
+version = "0.2.1-alpha.0"
dependencies = [
"async-h1",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 1c184ca..9... | 2 | 2 | 2 |
c1ae303b0e069c5680551a89096e324bd4aaafb5 | Luca Palmieri | 2020-05-11T19:02:22 | Update Cargo.lock for development purposes. | diff --git a/Cargo.lock b/Cargo.lock
index f06b0f7..305d669 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1721,7 +1721,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.1.2-alpha.0"
+version = "0.2.0"
dependencies = [
"async-h1",
"async-std", | 1 | 1 | 1 |
2057ce979deb6f6f2275719db10e18df8ba0edcb | Luca Palmieri | 2020-05-11T19:01:45 | Update version. | diff --git a/Cargo.toml b/Cargo.toml
index b366367..1c184ca 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "wiremock"
-version = "0.1.2-alpha.0"
+version = "0.2.0"
authors = ["Luca Palmieri <rust@lpalmieri.com>"]
edition = "2018" | 1 | 1 | 1 |
ef697c08839dbd5e1e91311e545eb374df031a3a | Luca Palmieri | 2020-05-11T18:59:28 | Add another test for path matcher to make it explicit that query parameters are ignored. | diff --git a/src/matchers.rs b/src/matchers.rs
index 4de6083..efd8b1b 100644
--- a/src/matchers.rs
+++ b/src/matchers.rs
@@ -100,7 +100,7 @@ impl Match for MethodExactMatcher {
/// // Arrange
/// let mock_server = MockServer::start().await;
///
-/// let response = ResponseTemplate::new(200).set_body("wor... | 1 | 30 | 1 |
410ec223511acac017e6d297a96349cccfbc0e22 | Paul Woolcock | 2020-05-08T16:54:19 | Add a Display impl for Request and log unknown requests | diff --git a/src/mock_actor.rs b/src/mock_actor.rs
index e39dedf..cd3fa83 100644
--- a/src/mock_actor.rs
+++ b/src/mock_actor.rs
@@ -43,6 +43,7 @@ impl MockActor {
if let Some(response) = response {
answer!(ctx, response).unwrap();
... | 2 | 18 | 1 |
50ab78ea6dcbf2ab829a429e38bcd3efa9256067 | Luca Palmieri | 2020-04-15T23:07:52 | Add reset method on MockServer. | diff --git a/src/mock_actor.rs b/src/mock_actor.rs
index fdda5ba..e39dedf 100644
--- a/src/mock_actor.rs
+++ b/src/mock_actor.rs
@@ -8,6 +8,9 @@ pub(crate) struct MockActor {
pub actor_ref: ChildRef,
}
+#[derive(Clone, Debug)]
+struct Reset {}
+
impl MockActor {
/// Start an instance of our MockActor and ... | 2 | 54 | 1 |
7cade6812d1ad20223ccf0ea9ecce7049bfb0291 | Luca Palmieri | 2020-04-14T10:16:04 | (cargo-release) start next development iteration 0.1.2-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 0fb8f0a..3e31231 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1721,7 +1721,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.1.1"
+version = "0.1.2-alpha.0"
dependencies = [
"async-h1",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 284f479..1... | 2 | 2 | 2 |
31eb1294fdab5267df009aa01ea0886e498b8362 | Luca Palmieri | 2020-04-14T10:15:21 | Update lock | diff --git a/Cargo.lock b/Cargo.lock
index 1f88cd1..0fb8f0a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1721,7 +1721,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.1.1-alpha.0"
+version = "0.1.1"
dependencies = [
"async-h1",
"async-std", | 1 | 1 | 1 |
95e9ee932fd6c98061def57009887f991d0f2fb0 | Luca Palmieri | 2020-04-14T10:14:37 | Point-release:
- deprecated set_body;
- introduce set_body_string, set_body_bytes, set_body_json to properly handle content-type of the responsse. | diff --git a/Cargo.toml b/Cargo.toml
index a8c50b4..284f479 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "wiremock"
-version = "0.1.1-alpha.0"
+version = "0.1.1"
authors = ["Luca Palmieri <rust@lpalmieri.com>"]
edition = "2018" | 1 | 1 | 1 |
fd41812c000d48920b45647cb246b563bfceebae | Luca Palmieri | 2020-04-14T10:13:37 | Add set_body_string. Fix tests using deprecated method. | diff --git a/src/response_template.rs b/src/response_template.rs
index 8ddd126..b67c995 100644
--- a/src/response_template.rs
+++ b/src/response_template.rs
@@ -122,6 +122,7 @@ impl ResponseTemplate {
/// It sets "Content-Type" to "application/json".
pub fn set_body_json<B: Serialize>(mut self, body: B) -> Se... | 2 | 21 | 3 |
24eb02d8dea0dc786a1620f004548af164371390 | Luca Palmieri | 2020-04-14T10:05:47 | Deprecate set_body in favour of set_body_bytes to make the resulting content type clearer.
Add set_body_json. | diff --git a/src/response_template.rs b/src/response_template.rs
index 3252bc8..8ddd126 100644
--- a/src/response_template.rs
+++ b/src/response_template.rs
@@ -1,14 +1,17 @@
use http_types::headers::{HeaderName, HeaderValue};
use http_types::{Response, StatusCode};
+use serde::Serialize;
use std::collections::HashM... | 1 | 41 | 3 |
900c74ba7c624d151180602d2d1ee93dcbc83fd0 | Luca Palmieri | 2020-04-13T16:14:17 | (cargo-release) start next development iteration 0.1.1-alpha.0 | diff --git a/Cargo.lock b/Cargo.lock
index 39c1be5..1f88cd1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1721,7 +1721,7 @@ dependencies = [
[[package]]
name = "wiremock"
-version = "0.1.0"
+version = "0.1.1-alpha.0"
dependencies = [
"async-h1",
"async-std",
diff --git a/Cargo.toml b/Cargo.toml
index 1702fc7..a... | 2 | 2 | 2 |
3f8ac79fdfea53d8fbe1282237173cee8c4f198c | MSxDOS | 2026-02-10T09:32:21 | Release 0.4.3 | diff --git a/Cargo.toml b/Cargo.toml
index 54c028a..00ffa1d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ntapi"
-version = "0.4.2"
+version = "0.4.3"
authors = ["MSxDOS <melcodos@gmail.com>"]
description = "FFI bindings for Native API"
license = "Apache-2.0 OR MIT" | 1 | 1 | 1 |
4b6e27c58ac55dcf907a755cdf6b9cb5b101c7dd | 0xczr | 2026-02-10T08:46:03 | Add SystemBasicProcessInformation (252) and SystemShadowStackInformation (221) (#22) | diff --git a/src/ntexapi.rs b/src/ntexapi.rs
index 7bc73a0..a260f03 100644
--- a/src/ntexapi.rs
+++ b/src/ntexapi.rs
@@ -940,7 +940,8 @@ ENUM!{enum SYSTEM_INFORMATION_CLASS {
SystemCodeIntegrityUnlockModeInformation = 205,
SystemLeapSecondInformation = 206,
SystemFlags2Information = 207,
- MaxSystemIn... | 4 | 28 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.