-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@IgnoreNoPactsToVerify test fails with NotFoundHalResponse when no pacts found #1324
Comments
That stack trace is always logged. What was your actual test failure? That annotation is tested with https://github.com/pact-foundation/pact-jvm/blob/v4.1.x/provider/junit5spring/src/test/kotlin/au/com/dius/pact/provider/spring/junit5/PactVerificationSpringProviderTest.kt which runs as part of the Pact-JVM build, and it does not fail. |
It doesn't even reach my tests, it's an initializationError with only that stacktrace. Correct me if I'm wrong, but the test case you've mentioned only tests for swallowing an IO error using In my case, I do have a running pact-broker (with no pacts) and I'm just using ps.: the |
I've built a small project to show the problem. |
Thanks for the example project |
Thanks @uglyog, I've just tested with version 4.2.3 and it worked. |
Hello guys, we are facing a similar issue, we are using version 4.1.x (current 4.1.20) and the tests fail when they are no pacts even with Do you think it could be fixed in the future 4.1.x versions? or we need to migrate to 4.2.x? |
I've back-ported the fix to 4.1.x |
great thanks! |
While running a JUnit5/Spring Pact verification with
@IgnoreNoPactsToVerify
and@PactBroker
when there are no published pacts in the pact-broker, the test fails withNotFoundHalResponse
exception.The pact libraries we're using:
testImplementation "au.com.dius.pact.provider:junit5spring:4.2.1"
*EDIT: works with version
4.1.8
but not with4.1.9
onwards.My best guess is #1225 broke it.
The complete stacktrace:
The text was updated successfully, but these errors were encountered: