Tien Vo
08/22/2023, 9:26 AM2023-08-22T091848.367683Z DEBUG tokio-runtime-worker pact_matching: --> Mismatches: [BodyMismatch { path: "$", expected: Some(b"testing"), actual: Some(b"testing"), mismatch: "MIME part 'personal_note': Unable to match 'testing' using ContentType(\"text/plain\")" }]
Tien Vo
08/29/2023, 5:47 PM2023-08-29T17:30:54.852187Z DEBUG ThreadId(03) pact_matching::matchers: String -> String: comparing 'testing' to 'testing' ==> false cascaded=false matcher=ContentType("text/plain")
Tien Vo
08/30/2023, 4:06 AM2023-08-30T03:24:34.450933Z DEBUG ThreadId(03) matches_with{self="testing" actual="testing" matcher=ContentType("text/plain") cascaded=false}: pact_matching::matchers: String -> String: comparing 'testing' to 'testing' ==> false cascaded=false matcher=ContentType("text/plain")
2023-08-30T03:24:34.450936Z TRACE ThreadId(03) pact_matching::matchers: match_values: &str -> &str result=Err(["Unable to match 'testing' using ContentType(\"text/plain\")"])
2023-08-30T03:24:34.450941Z DEBUG ThreadId(03) pact_matching::binary_utils: Comparing file part 'MimeFile { index: 2, name: "personal_note", content_type: Some("text/plain"), filename: "note.txt", data: b"testing", headers: {"content-disposition": "form-data; name=\"personal_note\"; filename=\"note.txt\"", "content-type": "text/plain"} }' to 'MimeFile { index: 2, name: "personal_note", content_type: Some("text/plain"), filename: "note.txt", data: b"testing", headers: {"content-disposition": "form-data; name=\"personal_note\"; filename=\"note.txt\"", "content-length": "7", "content-type": "text/plain"} }' at path '$.personal_note' -> BodyMismatches({"$": [BodyMismatch { path: "$", expected: Some(b"testing"), actual: Some(b"testing"), mismatch: "Unable to match 'testing' using ContentType(\"text/plain\")" }]})
Tien Vo
08/30/2023, 4:08 AMtesting
is not equals to testing
. Sound like a bug to me. What do you think @uglyog ?uglyog
Tien Vo
08/30/2023, 5:01 AMTien Vo
09/11/2023, 11:41 AM