Hello guys! I have an issue using branch fallback ...
# pact-jvm
p
Hello guys! I have an issue using branch fallback feature with pact-broker and pact-jvm by PactBrokerConsumerVersionSelectors (I think I am missing something that’s why I didn’t create an issue for now). Here is my configuration: • Java version: 17 • pact jvm dependency:
Copy code
<dependency>
    <groupId>au.com.dius.pact.provider</groupId>
    <artifactId>junit5spring</artifactId>
    <version>4.5.2</version>
</dependency>
• PactBrokerConsumerVersionSelectors:
Copy code
@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:
Copy code
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!