Pascal LIBENZI
03/17/2023, 7:00 AM<dependency>
<groupId>au.com.dius.pact.provider</groupId>
<artifactId>junit5spring</artifactId>
<version>4.5.2</version>
</dependency>
• PactBrokerConsumerVersionSelectors:
@PactBrokerConsumerVersionSelectors
public static SelectorBuilder consumerVersionSelectors() {
return new SelectorBuilder()
.branch(System.getProperty("branch"), null, System.getProperty("fallback"));
}
• Link to the project sources if needed: https://gitlab.com/pascal.libenzi/pact-jvm-provider/-/tree/feature/new-field-publication-date
My consumers have a trunk branch. If I put it as a System property “branch” the test pass. If I pass “nonexistingbranch” in branch and trunk in fallback I have:
au.com.dius.pact.provider.junitsupport.loader.NoPactsFoundException:
No Pact files were found to verify
Provider: BookStore
Source: Pact Broker <http://localhost:80> consumerVersionSelectors=[Branch(name=test, consumer=null, fallback=trunk)]
Does somebody have any idea about what I am missing?
Thanks!