Paul
09/18/2025, 3:18 PM<http://javax.net|javax.net>.ssl.trustStore and <http://javax.net|javax.net>.ssl.trustStorePassword) for the trust store and password. Is this the recommended approach for this or is there another better way we can configure the http client used to interact with the Pact broker?Slackbot
09/18/2025, 3:18 PMElson Ho
09/19/2025, 2:31 AMKieran McCarthy
09/24/2025, 5:47 PMfoo. We have written consumer contract tests within this module, however, I’m not sure where to go from here.
We could publish the pacts to the broker but that would just prevent the module from going out of sync with foo. We don’t record deployments of the module because it isn’t a service. So this wouldn’t help to prevent the services from going out of sync with foo.
What we actually want to do is publish pacts for multiple services, services who happen to be using the module, to prevent them from going out of sync with the foo service.
I’m not sure where we’re going wrong so any help would be greatly appreciated. Thanks 🙂Barani Codandam
09/25/2025, 1:50 PMcan-i-deploy step to check verification status—will this step fail, or still pass?
2. Also, according to the documentation, enabling WIP pacts initially seemed to require no changes on the provider side. However, I noticed that the includeWipPactsSince property is mentioned as part of the provider verification configuration to include modified pacts. Could someone clarify whether this property is mandatory for enabling WIP pacts on the consumer?
Appreciate your insights!GitHub
11/11/2025, 12:32 AMGitHub
11/11/2025, 4:05 AMTim Vahlbrock
11/26/2025, 1:00 PMGitHub
12/10/2025, 12:48 AMŁukasz Nowak
12/10/2025, 11:42 AMGitHub
12/17/2025, 4:36 AMGitHub
02/17/2026, 10:50 PMGitHub
02/18/2026, 12:18 AMWojciech Wroblewski
02/18/2026, 3:40 PM@ExtendWith(SpringExtension.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
@Provider("provider-name")
@AllowOverridePactUrl
@PactBroker(scheme = "https", host = "${PACT_BROKER_BASE_URL}",providerBranch = "main", authentication = @PactBrokerAuth(token = "${PACT_BROKER_TOKEN}"))
public class ProviderVerificationTest
I exported my url and token to env variables. When running that test I'm getting
[ERROR] ProviderVerificationTest.pactVerificationTestTemplate(PactVerificationContext) » IllegalArgument Invalid pact broker host specified ('${PACT_BROKER_BASE_URL}'). Please provide a valid host or specify the system property 'pactbroker.host'.
any idea what may be wrong in my env/configuration?Wojciech Wroblewski
02/23/2026, 3:37 PMpactflow publish-provider-contract . Did you faced such case before? How do you handle that?OMKAR SHARAN
03/10/2026, 2:47 PMBhoomtawath Plinsut
03/18/2026, 2:11 AMNorbert Gulácsi
03/25/2026, 12:17 PMBhoomtawath Plinsut
04/03/2026, 3:23 AMGitHub
04/16/2026, 4:30 AMGitHub
04/17/2026, 1:42 AMGitHub
04/21/2026, 1:01 AM@Ignore on the Pact method in the post spec check stage
• 6293508 - chore: Update main readme
• 06deeb5 - feat: Check for the mock server field and raise an exception if it is missing
• d39f691 - feat: rename annotation so it does not have the same name as the JUnit one
• 977572c - feat: Add a consumer spock module
pact-foundation/pact-jvmGitHub
04/30/2026, 1:38 AMGitHub
06/19/2026, 3:15 AMGitHub
06/19/2026, 5:12 AMGitHub
06/19/2026, 5:54 AMGitHub
06/24/2026, 4:51 AMGitHub
08/06/2026, 3:10 AMGitHub
08/10/2026, 6:13 AMjschenfeld
08/11/2026, 2:07 PM@ExtendWith(PactConsumerTestExt.class)
@PactTestFor(providerName = "example-provider", pactVersion = PactSpecVersion.V4)
class ExampleClientPactTest {
private final OkHttpClient client = new OkHttpClient();
@Pact(consumer = "example-consumer")
public V4Pact createOrderPact(PactDslWithProvider builder) {
return builder
.given("provider accepts an order")
.uponReceiving("a request to create an order")
.path("/orders")
.method("POST")
.headers(Map.of("Content-Type", "application/json"))
.body(new PactDslJsonBody()
.stringType("customerId", "cust-123")
.decimalType("amount", 100.00))
.willRespondWith()
.status(200)
.headers(Map.of("Content-Type", "application/json"))
.body(new PactDslJsonBody()
.stringType("orderId", "order-456")
.stringValue("status", "CREATED"))
.toPact(V4Pact.class);
}
@Test
@PactTestFor(pactMethod = "createOrderPact")
void should_create_order(MockServer mockServer) throws IOException {
Request request = new Request.Builder()
.url(mockServer.getUrl() + "/orders")
.post(RequestBody.create(
"{\"customerId\":\"cust-123\",\"amount\":100.00}",
MediaType.get("application/json")))
.build();
try (Response response = client.newCall(request).execute()) {
assertThat(response.code()).isEqualTo(200);
}
}
}
Fails with:
java.io.IOException: unexpected end of stream on <http://localhost>:PORT/...
Caused by: java.io.EOFException: \n not found: limit=0 content=…
at okio.RealBufferedSource.readUtf8LineStrict
at okhttp3.internal.http1.HeadersReader.readLine
at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders
and Pact reports the interaction as not received (client never got a full response). Looks like a race where the client connects before the mock server is ready to respond. Anyone seen this / know a fix or workaround?