Marko (IttyBittyApps / pact-swift)
01/27/2025, 10:38 PM"{\"value\":\"12:12\",\"pact:matcher:type\":\"time\",\"format\":\"HH:mm\"}"
Into pactffi_with_query_parameter_v2
When sent GET /interaction?value=10:12
pactffi
is complaining with:
{
"Request-Mismatch": {
"method": "GET",
"path": "/interaction",
"query": {
"item": ["10:12"]
},
"headers": {
"host": ["127.0.0.1:5772"],
"accept-language": ["en-AU", "en;q=0.9"],
"connection": ["keep-alive"],
"user-agent": ["xctest/23600 CFNetwork/1568.300.101 Darwin/24.2.0"],
"accept-encoding": ["gzip", "deflate"],
"accept": ["*/*"]},
"body": "Empty",
"matching_rules": { "rules": {} }, # ?????
"generators": { "categories": {} }
}
}
because matching_rules
is missing the matcher value I sent through to FFI.
Both .v3
and .v4
Coming back to this after a very long time time away, so I'm a bit rusty (no pun intended).rholshausen
01/27/2025, 10:39 PMrholshausen
01/27/2025, 10:39 PMMarko (IttyBittyApps / pact-swift)
01/27/2025, 10:40 PMrholshausen
01/27/2025, 10:41 PMgiphy
01/27/2025, 10:41 PMMarko (IttyBittyApps / pact-swift)
01/27/2025, 10:41 PMMarko (IttyBittyApps / pact-swift)
01/27/2025, 10:42 PMMarko (IttyBittyApps / pact-swift)
01/27/2025, 10:45 PM2025-01-27T22:22:54.111138Z DEBUG tokio-runtime-worker pact_matching: --> Mismatches: [QueryMismatch { parameter: "$.item", expected: "[\"12:12\"]", actual: "[\"10:12\"]", mismatch: "Unable to match [\"12:12\"] using Time(\"HH:mm\")" }]
This one confuses me, 'cause I do see the matcher being set RuleList { rules: [Time("HH:mm")], rule_logic: And, cascaded: false }}
but then it fails with query mismatch 😐 when verifyingMarko (IttyBittyApps / pact-swift)
01/27/2025, 10:46 PMRequest did not match: Request did not match - HTTP Request ( method: GET, path: /interaction, query: Some({"item": [Some("12:12")]}), headers: None, body: Missing ) 0) Unable to match ["12:12"] using Time("HH:mm")
A bit rude tbhrholshausen
01/27/2025, 10:53 PMrholshausen
01/27/2025, 10:54 PMrholshausen
01/27/2025, 10:56 PMMarko (IttyBittyApps / pact-swift)
01/27/2025, 10:57 PMMarko (IttyBittyApps / pact-swift)
01/27/2025, 10:58 PMrholshausen
01/27/2025, 10:59 PMMarko (IttyBittyApps / pact-swift)
01/27/2025, 11:41 PM