Fábio Rodrigues
09/13/2022, 5:10 PM[INFO][pact_verifier::pact_broker] Fetching path '/pacts/provider/publish-service/consumer/alm-app/pact-version/6bc3dee5de1ea718ef23d4dab94fa32536ecf014/metadata/c1tdW2N2XT0xMTI2MiZwPXRydWU' from pact broker
[DEBUG][hyper::client::pool] reuse idle connection for ("https", <http://outsystems.pactflow.io|outsystems.pactflow.io>)
[DEBUG][reqwest::async_impl::client] response '200 OK' for <https://outsystems.pactflow.io/pacts/provider/publish-service/consumer/alm-app/pact-version/6bc3dee5de1ea718ef23d4dab94fa32536ecf014/metadata/c1tdW2N2XT0xMTI2MiZwPXRydWU>
[ERROR][pact_verifier] Failed to load pact - Failed to load pact from '<https://outsystems.pactflow.io/>' - ContentError("Expected a \".\" or \"[\" instead of \"r\" in path expression \"$results[*].deploymentOperations[*].applicationKey\" at index 1")
[WARN][pact_matching::metrics]
The part i'm not understanding is why it's failing on parsing the matcher locator:
"matchingRules": {
"body": {
"$results[*].deploymentOperations[*].applicationKey": {
"combine": "AND",
"matchers": [
{
"match": "regex",
"regex": "^$|[0-9A-Fa-f]{8}(?:-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12}$"
}
]
},
David Hvilava
09/13/2022, 5:14 PMFábio Rodrigues
09/13/2022, 5:15 PMDavid Hvilava
09/13/2022, 5:17 PMFábio Rodrigues
09/13/2022, 5:18 PMFábio Rodrigues
09/13/2022, 5:18 PMDavid Hvilava
09/13/2022, 5:18 PMMatt (pactflow.io / pact-js / pact-go)
uglyog
$results[*].deploymentOperations[*].applicationKey
is not correct. It is missing the period after the dollar (as the error is saying). I.e $.results[*].deploymentOperations[*].applicationKey
Timothy Jones
09/14/2022, 12:49 AMFábio Rodrigues
09/14/2022, 8:02 AMFábio Rodrigues
09/14/2022, 8:04 AMFábio Rodrigues
09/14/2022, 8:05 AMFábio Rodrigues
09/14/2022, 8:05 AMTimothy Jones
09/14/2022, 8:09 AMFábio Rodrigues
09/14/2022, 8:10 AMFábio Rodrigues
09/14/2022, 8:10 AMTimothy Jones
09/14/2022, 8:13 AM