Questions tagged [pact-jvm]

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.

JVM implementation of the consumer driven contract library pact.

From the Ruby Pact website:

Define a pact between service consumers and providers, enabling "consumer driven contract" testing.

Pact provides an RSpec DSL for service consumers to define the HTTP requests they will make to a service provider and the HTTP responses they expect back. These expectations are used in the consumers specs to provide a mock service provider. The interactions are recorded, and played back in the service provider specs to ensure the service provider actually does provide the response the consumer expects.

This allows testing of both sides of an integration point using fast unit tests.

This gem is inspired by the concept of "Consumer driven contracts". See http://martinfowler.com/articles/consumerDrivenContracts.html for more information.

Read Getting started with Pact for more information on how to get going.

Source: https://github.com/DiUS/pact-jvm/

109 questions
0
votes
1 answer

Pact Provider @State Test always returning 404

I am able to get a test running for a Spring Boot Project but I'm always getting a 404 on the @State test. @TargetRequestFilter public void exampleRequestFilter(HttpRequest request) { System.out.println(request.toString()); …
Joel Holmes
  • 943
  • 2
  • 12
  • 23
0
votes
2 answers

Pact verify not working - Annotated method not found during message provider test

I have a project where we are using message provider since it involves Apache kafka based messaging. Consumer side maven goals are working fine from local as well as from Jenkins. Provider side pact-verify is failing in Jenkins saying "No Annotated…
0
votes
1 answer

pactbroker docker image connection issue with non-dockerized postgresql

I am using pact broker docker image present in the same image is present in I am not using docker image of postgresql. I have my own Postgres server hosted in 172.15.16.23 (local ip), port 5432 , admin usaer as pactbrokeruser and password as…
0
votes
1 answer

Pact File creation failed due to NoHttpResponseException : 127.0.*.*.*** failed to respond

I am unable to create the Pact file. Facing NoHttpResponseException : 127.0.0.1:56314 failed to respond. I was able to generate the pact file successfully, but after I did Maven->clean i am facing a series of issues. Please let me know what can be…
PaChSu
  • 297
  • 3
  • 13
1 2 3 4 5 6 7
8