Nicolas Alejandro Vaquero
12/20/2023, 11:42 AMfailIfNoPactsFound
flag on the provider side
When it is set to true I get
Failures:
1) Failed to load pact - No pacts found matching the given consumer version selectors in pact broker '
// {"name":"Error","message":"Verfication failed","stack":"Error: Verfication failed\n at /....
and when it is set to false I get
Failures:
1) Failed to load pact - No pacts found matching the given consumer version selectors in pact broker '
// {"name":"Error","message":"Verfication failed","stack":"Error: Verfication failed\n at /....
It doesn't seem to for for me as soon as I start using consumerVersionSelectors.deployedOrReleased
. If I do not set deployedOrReleased
at all, failIfNoPactsFound
works fine.
Same happens when using mainBranch
flagMatt (pactflow.io / pact-js / pact-go)
Nicolas Alejandro Vaquero
12/20/2023, 12:06 PM2023-12-20T12:00:30.711417Z DEBUG ThreadId(02) pact_verifier::pact_broker: Sending JSON to https://<REDACTED>/pacts/provider/<PROVIDER_NAME>/for-verification using POST: {"includePendingStatus":false,"consumerVersionSelectors":[{"latest":true,"mainBranch":true,"branch":"mainx"}],"providerVersionBranch":"nico-test"}
2023-12-20T12:00:30.711451Z DEBUG ThreadId(02) hyper::client::pool: reuse idle connection for ("https", <REDACTED>)
// ...
2023-12-20T12:00:31.050167Z INFO ThreadId(02) pact_verifier::pact_broker: error response for pacts for verification: failed validation - ["consumerVersionSelectors: cannot specify mainBranch=true with any other criteria apart from consumer (at index 0)"]
2023-12-20T12:00:31.050498Z ERROR ThreadId(02) pact_verifier: No pacts found matching the given consumer version selectors in pact broker 'https://<REDACTED>': failed validation - ["consumerVersionSelectors: cannot specify mainBranch=true with any other criteria apart from consumer (at index 0)"]
Nicolas Alejandro Vaquero
12/20/2023, 12:09 PM2023-12-20T12:07:47.808284Z DEBUG ThreadId(02) pact_verifier::pact_broker: Sending JSON to <REDACTED>/pacts/provider/<PROVIDER_NAME>/for-verification using POST: {"includePendingStatus":false,"consumerVersionSelectors":[{"deployedOrReleased":true,"branch":"mainx"}],"providerVersionBranch":"nico-test"}
["consumerVersionSelectors: cannot specify the field branch with the field deployedOrReleased (at index 0)"]
Nicolas Alejandro Vaquero
12/20/2023, 12:09 PMNicolas Alejandro Vaquero
12/20/2023, 12:10 PMNicolas Alejandro Vaquero
12/20/2023, 12:19 PM2023-12-20T12:17:32.559427Z INFO ThreadId(11) pact_verifier::pact_broker: error response for pacts for verification: failed validation - ["consumerVersionSelectors: cannot specify the fields branch/latest with the field deployedOrReleased (at index 0)"]
2023-12-20T12:17:32.561122Z ERROR ThreadId(11) pact_verifier: No pacts found matching the given consumer version selectors in pact broker '<https://skyai.pactflow.io>': failed validation - ["consumerVersionSelectors: cannot specify the fields branch/latest with the field deployedOrReleased (at index 0)"]
2023-12-20T12:17:32.562776Z ERROR ThreadId(11) pact_verifier: Failed to load pact - No pacts found matching the given consumer version selectors in pact broker '<REDACTED>'
2023-12-20T12:17:32.563719Z WARN ThreadId(11) pact_matching::metrics:
2023-12-20T12:19:00.414088Z INFO ThreadId(11) pact_verifier::pact_broker: error response for pacts for verification: failed validation - ["consumerVersionSelectors: cannot specify the field branch with the field deployedOrReleased (at index 0)"]
2023-12-20T12:19:00.414601Z ERROR ThreadId(11) pact_verifier: No pacts found matching the given consumer version selectors in pact broker '<REDACTED>': failed validation - ["consumerVersionSelectors: cannot specify the field branch with the field deployedOrReleased (at index 0)"]
Matt (pactflow.io / pact-js / pact-go)
Nicolas Alejandro Vaquero
12/20/2023, 12:26 PMMatt (pactflow.io / pact-js / pact-go)
[{deployedOrReleased: true}, {mainBranch: true}, ...]
Matt (pactflow.io / pact-js / pact-go)
Nicolas Alejandro Vaquero
12/20/2023, 12:31 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Nicolas Alejandro Vaquero
12/20/2023, 12:37 PMNicolas Alejandro Vaquero
12/20/2023, 12:53 PMMatt (pactflow.io / pact-js / pact-go)