You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a workflow where a consumer triggers the verification on the provider side, and overrides the Pact URL with pact.filter.pacturl. The verification is being run correctly, but publishing the
results is being skipped.
Running the Gradle task with info level:
[Test worker] INFO a.c.d.p.p.DefaultVerificationReporter.reportResults - Skipping publishing verification results for source UrlSource
I did some digging and found out this in DefaultVerificationReporter.kt:
So, if the type of the Pact source is not BrokerUrlSource, it skips the publishing of the results.
I think the culprit is most likely this piece of code in PactBrokerLoader.kt:
overridefunload(providerName:String): List<Pact<Interaction>> {
val resolver = setupValueResolver()
val pacts =when {
overriddenPactUrl.isNotEmpty() -> {
val pactBrokerClient = newPactBrokerClient(brokerUrl(resolver).build(), resolver)
val pactSource =UrlSource<Interaction>(overriddenPactUrl!!)
// ...
So, basically when we override the Pact URL, the Pact source here is created as an UrlSource which results into the verification results being skipped.
The text was updated successfully, but these errors were encountered:
I added a workflow where a consumer triggers the verification on the provider side, and overrides the Pact URL with
pact.filter.pacturl
. The verification is being run correctly, but publishing theresults is being skipped.
Running the Gradle task with info level:
I did some digging and found out this in
DefaultVerificationReporter.kt
:So, if the type of the Pact source is not
BrokerUrlSource
, it skips the publishing of the results.I think the culprit is most likely this piece of code in
PactBrokerLoader.kt
:So, basically when we override the Pact URL, the Pact source here is created as an
UrlSource
which results into the verification results being skipped.The text was updated successfully, but these errors were encountered: