Skip to content

Commit

Permalink
chore: Upgrade pact-models to 1.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Aug 4, 2023
1 parent 2b97c73 commit 24ed783
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 21 deletions.
2 changes: 1 addition & 1 deletion rust/pact_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exclude = [
clap = "2.31.2"
serde_json = "1.0"
serde = "1.0"
pact_models = "~1.1.9"
pact_models = "~1.1.10"
pact_matching = { version = "~1.1.4", path = "../pact_matching" }
anyhow = "1.0.40"
log = "0.4.14"
Expand Down
2 changes: 1 addition & 1 deletion rust/pact_consumer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ lazy_static = "1.4.0"
maplit = "1.0.2"
pact_matching = { version = "~1.1.4", path = "../pact_matching", default-features = false }
pact_mock_server = { version = "~1.2.2", path = "../pact_mock_server", default-features = false }
pact_models = { version = "~1.1.9", default-features = false }
pact_models = { version = "~1.1.10", default-features = false }
pact-plugin-driver = { version = "~0.4.5", optional = true, default-features = false }
regex = "1.7.3"
serde_json = "1.0.95"
Expand Down
2 changes: 1 addition & 1 deletion rust/pact_ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exclude = [
ansi_term = "0.12.1"
anyhow = "1.0.70"
pact_matching = { version = "~1.1.4", path = "../pact_matching" }
pact_models = "~1.1.9"
pact_models = "~1.1.10"
pact_mock_server = { version = "~1.2.2", path = "../pact_mock_server" }
pact_verifier = { version = "~1.0.2", path = "../pact_verifier" }
libc = "0.2.141"
Expand Down
2 changes: 1 addition & 1 deletion rust/pact_matching/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ mime = "0.3.17"
multer = { version = "2.1.0", features = ["all"], optional = true }
nom = "7.1.3"
onig = { version = "6.4.0", default-features = false }
pact_models = { version = "~1.1.9", default-features = false }
pact_models = { version = "~1.1.10", default-features = false }
pact-plugin-driver = { version = "~0.4.5", optional = true, default-features = false }
rand = "0.8.5"
semver = "1.0.17"
Expand Down
2 changes: 1 addition & 1 deletion rust/pact_mock_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ itertools = "0.10.5"
lazy_static = "1.4.0"
maplit = "1.0.2"
pact_matching = { version = "~1.1.4", path = "../pact_matching", default-features = false }
pact_models = { version = "~1.1.9", default-features = false }
pact_models = { version = "~1.1.10", default-features = false }
pact-plugin-driver = { version = "~0.4.5", optional = true, default-features = false }
rustls = { version = "0.21.0", optional = true }
rustls-pemfile = { version = "1.0.2", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion rust/pact_mock_server_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ log = "0.4.18"
lazy_static = "1.4.0"
pact_matching = { version = "~1.1.4", path = "../pact_matching", default-features = false }
pact_mock_server = { version = "~1.2.2", path = "../pact_mock_server", default-features = false }
pact_models = { version = "~1.1.9", default-features = false }
pact_models = { version = "~1.1.10", default-features = false }
rand = "0.8.5"
regex = "1.8.4"
reqwest = { version = "0.11.18", default-features = false, features = ["rustls-tls-native-roots", "blocking", "json"] }
Expand Down
2 changes: 1 addition & 1 deletion rust/pact_verifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ lazy_static = "1.4.0"
maplit = "1.0.2"
mime = "0.3.16"
pact_matching = { version = "~1.1.4", path = "../pact_matching", default-features = false }
pact_models = { version = "~1.1.9", default-features = false }
pact_models = { version = "~1.1.10", default-features = false }
pact-plugin-driver = { version = "~0.4.5", optional = true, default-features = false }
regex = "1.7.0"
serde = "1.0.147"
Expand Down
15 changes: 3 additions & 12 deletions rust/pact_verifier/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,7 @@ async fn verify_message_pact_with_two_interactions() {
i.request.method("POST");
i.request.path("/");

i.response.ok().content_type("application/json").json_body(json_pattern!({
"result": "hello"
}));
i.response.ok().content_type("application/json").json_body(json_pattern!("Hello"));

i
})
Expand Down Expand Up @@ -649,21 +647,14 @@ async fn verify_message_pact_with_two_interactions() {
"testResults": [
{
"interactionId": "message-one",
"mismatches": [
{
"attribute":"body",
"description":"Failed to parse the expected body: 'expected value at line 1 column 1'",
"identifier":"$"
}
],
"success": false
"success": true
},
{
"interactionId": "message-two",
"mismatches": [
{
"attribute":"body",
"description":"Failed to parse the expected body: 'expected value at line 1 column 1'",
"description":"Expected 'Hello' (String) to be equal to 'Hello2' (String)",
"identifier":"$"
}
],
Expand Down
2 changes: 1 addition & 1 deletion rust/pact_verifier_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env_logger = "0.10.0"
junit-report = { version = "0.8.2", optional = true }
log = "0.4.17"
maplit = "1.0.2"
pact_models = { version = "~1.1.9", default-features = false }
pact_models = { version = "~1.1.10", default-features = false }
pact_verifier = { version = "~1.0.2", path = "../pact_verifier", default-features = false }
regex = "1.7.3"
reqwest = { version = "0.11.16", default-features = false, features = ["rustls-tls-native-roots", "blocking", "json"] }
Expand Down
2 changes: 1 addition & 1 deletion rust/pact_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exclude = [
crate-type = ["cdylib", "rlib"]

[dependencies]
pact_models = "~1.1.9"
pact_models = "~1.1.10"
wasm-bindgen = "0.2.79"
console_error_panic_hook = "0.1.7"
console_log = { version = "0.2.0", features = ["color"] }
Expand Down

0 comments on commit 24ed783

Please sign in to comment.