Ben Pilgrim
05/17/2022, 12:27 PMrefs/heads/feature/testing
branch. Any help would be greatly appreciated.Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Ben Pilgrim
05/17/2022, 1:06 PMBen Pilgrim
05/17/2022, 1:10 PM"notices": [
{
"when": "before_verification",
"text": "The pact at <https://pact-broker/pacts/provider/PROVIDER-SERVICE/consumer/CONSUMER-SERVICE/pact-version/784335ccca070ed0a4fec7cd3667e24ac57b4c06/metadata/d2lwPXRydWU> is being verified because it is a 'work in progress' pact (ie. it is the pact for the latest version of CONSUMER-SERVICE from branch 'refs/pull/122141/merge' and is still in pending state). Read more at <https://docs.pact.io/go/wip>"
},
{
"when": "before_verification",
"text": "This pact is in pending state for this version of PROVIDER-SERVICE because a successful verification result for a version of PROVIDER-SERVICE with tag 'refs/heads/feature/testing' has not yet been published. If this verification fails, it will not cause the overall build to fail. Read more at <https://docs.pact.io/go/pending>"
},
{
"when": "after_verification:success_true_published_false",
"text": "This pact is still in pending state for any version of PROVIDER-SERVICE with tag 'refs/heads/feature/testing' as the successful verification results with this tag have not yet been published."
},
{
"when": "after_verification:success_false_published_false",
"text": "This pact is still in pending state for any version of PROVIDER-SERVICE with tag 'refs/heads/feature/testing' as a successful verification result with this tag has not yet been published"
},
{
"when": "after_verification:success_true_published_true",
"text": "This pact is no longer in pending state for any version of PROVIDER-SERVICE with tag 'refs/heads/feature/testing', as a successful verification result with this tag has been published. If a verification for a version of PROVIDER-SERVICE with this tag fails in the future, it will fail the build. Read more at <https://docs.pact.io/go/pending>"
},
{
"when": "after_verification:success_false_published_true",
"text": "This pact is still in pending state for any version of PROVIDER-SERVICE with tag 'refs/heads/feature/testing' as a successful verification result with this tag has not yet been published"
}
]
Ben Pilgrim
05/17/2022, 1:33 PMBen Pilgrim
05/17/2022, 1:40 PMThis pact is still in pending state for any version of PROVIDER-SERVICE with tag 'refs/heads/feature/testing' as a successful verification result with this tag has not yet been published
claim seems to be false based on what I’m seeing in the UI. Not sure if I’m missing something though.Matt (pactflow.io / pact-js / pact-go)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Ben Pilgrim
05/18/2022, 9:13 AMtd.delete_pacticipant("foo-consumer-1")
.delete_pacticipant("bar-provider-1")
.publish_pact(consumer: "foo-consumer-1", consumer_version: "1", provider: "bar-provider-1", content_id: "111", branch: "feat/x")
.get_pacts_for_verification(
enable_pending: true,
provider_version_tag: "feat/y",
include_wip_pacts_since: "2020-01-01",
consumer_version_selectors: [{ branch: "main" }]
)
.verify_pact(
index: 0,
provider_version_tag: "feat/y",
provider_version: "1",
success: true
)
.get_pacts_for_verification(
enable_pending: true,
provider_version_tag: "feat/y",
include_wip_pacts_since: "2020-01-01",
consumer_version_selectors: [{ branch: "main" }]
)
Ben Pilgrim
05/18/2022, 9:20 AMBen Pilgrim
05/18/2022, 9:25 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
For the WIP pacts, the pending flag is hardcoded to true.
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
The pact at <http://pact> is being verified because it is a 'work in progress' pact (ie. it is the pact for the latest versions of Foo from branch 'feat-x' and it has not yet been successfully verified by a version of Bar from branch 'feat/z' when the pact's application version was explicitly specified in the consumer version selectors). Read more at <https://docs.pact.io/go/wip>
Ben Pilgrim
05/19/2022, 7:57 AMBeth (pactflow.io/Pact Broker/pact-ruby)