quarkiverse / quarkus-pact

Pact is a widely-recommended framework for consumer-driven contract testing. This Quarkus extension gives the best Pact integration with Quarkus.
https://pact.io/
Apache License 2.0
12 stars 6 forks source link

Upstream changes in Quarkus leads to failure for a message with a payload #191

Open michalvavrik opened 6 months ago

michalvavrik commented 6 months ago

This could be invalid as I do run tests with released Quarkus Pact (tried it also with 1.3.0) and Quarkus 999-SNAPSHOT and without changing anything in my tests, or changing Quarkus Pact version, I now get tests failing (looks like started in last days).

Verifying a pact between TheConsumer and TheProvider
  [Using File src/test/resources/pacts/TheConsumer-TheProvider.json]
  a message with a payload
      Verification Failed - No annotated methods were found for interaction 'a message with a payload'. You need to provide a method annotated with @PactVerifyProvider("a message with a payload") on the classpath that returns the message contents.

Failures:

1) a message with a payload

    1.1) No annotated methods were found for interaction 'a message with a payload'. You need to provide a method annotated with @PactVerifyProvider("a message with a payload") on the classpath that returns the message contents.

Is this something that will be fixed with the next Pact version or a known issue?

Steps to reproduce:

  1. git clone git@github.com:quarkus-qe/quarkus-test-suite.git
  2. cd quarkus-test-suite
  3. mvn clean test -f test-tooling/pact/
michalvavrik commented 6 months ago

cc @holly-cummins

holly-cummins commented 6 months ago

Hmm, the ecosystem CI is testing with Quarkus 999-SNAPSHOT and is passing fine, so it looks like there's maybe a coverage gap in the tests in this repo. I'll have a look at the QE suite and see if I can spot the difference.