The Pact Broker is an HTTP service that allows teams to exchange consumer contracts for HTTP (and other) services that have been created by the Pact tool.
Questions tagged [pact-broker]
70 questions
3
votes
1 answer
Pact JS: Provider testing
Using Pact JS to test both my consumers and providers. I’m successfully able to generate a pact file, and I’d like to verify those against my provider.
I have a few questions with regards to testing the provider:
Do I need to start my provider…

user8901251
- 43
- 4
3
votes
2 answers
Publish pacts to a pact broker using maven plugin
I was able to generate a pact file and then verify it using the maven plugin. Now, I am trying to publish the pacts using a pact broker.
What I have done so far is based on the below link-
…

ljs
- 495
- 1
- 8
- 23
2
votes
1 answer
how to create a valid webhook which can be triggered by Provider_verification_published event in pact broker?
to automate contract testing by leveraging pact broker webhooks, I created customized contract_content_changed event with a jenkins job. but when I was trying to add webhook for customer pipeline which is triggered by verification result publishing,…

Yunxing
- 23
- 3
2
votes
1 answer
Unable to fetch PACT from Pact Brocker in dotnet core while verifying provider side
I have implemented PACT on consumer side in C# dotnet core and I was able to publish *.json pact file to PactBrocker using following code.
var pactPublisher = new PactPublisher("http://domain.pact.dius.com.au", new PactUriOptions("***",…

ajinkya shidhore
- 43
- 9
2
votes
1 answer
Pact provider tests broken: pactVerificationTestTemplate » PreconditionViolation
I'm quite new to CDC testing and only make my first steps. I've deployed the Pact-Broker (docker-compose), running at localhost:80. The consumer sends the generated pacts successfully to the broker, but it seems that the provider can't get a valid…

Tagira
- 31
- 1
- 3
2
votes
2 answers
Pact Contract Test :How to generate dynamic PactDslJsonBody using json value?
How to generate dynamic PactDslJsonBody using json value?
Is it possible Pact team can provide the auto builder to assign body dynamically?
Pact Body:
body(new PactDslJsonBody()
.object("testsuite")
…

Nandess
- 25
- 1
- 10
1
vote
1 answer
Pact verify not publishing result to pact broker
I was successful to publish the contract in pact JS to Pact broker and now am trying to verify the contract in Java spring boot, the contract verification pass with no issues but the result of that verification doesn't get published to Pact broker…

yassine-eluharani
- 47
- 6
1
vote
1 answer
Pact Verification: Can i skip a particular providerState
Can I skip a particular provider state at the time of pact verification execution? like in my pact file I have 10 interactions and I want to skip an interaction or a provider state from StateChangeController. I'm using 'au.com.dius.pact.provider'…

dev-rgupta
- 54
- 4
1
vote
1 answer
How to connect the Pact Broker to a local or cloud instance of PostgreSQL?
I'm struggling to get the Pact Broker running in a docker container to connect to my local installation of PostgreSQL on Windows.
This is what my docker run command looks like...
docker run pactfoundation/pact-broker
-e…

Konzy262
- 2,747
- 6
- 42
- 71
1
vote
1 answer
How to integrate pact-jvm provider only with json file
I want to test my spring-boot Rest API by using a pact json file provided. The thing is all the resources on internet points to verifying using pact-broker. I will get there but currently, working on a POC for this is turning out to be quite…

diwakarb
- 543
- 2
- 9
- 23
1
vote
1 answer
How do I publish pact contracts on build for .net core?
Apparently this is possible for Java apps with Gradle.
I don't want to have to run some separate script for publishing my pact contract for my .net core apps.
How do I publish my pact contract during dotnet build?
This might be outside the scope of…

red888
- 27,709
- 55
- 204
- 392
1
vote
2 answers
Using pact broker with a path
I am trying to get my pact broker working on my environment. I have the broker running in K8S under https://mydomain/pactbroker (image; dius/pactbroker).
I am able to send to the broker with the maven plugin (publish). However when I try to verify I…

Jurn
- 796
- 1
- 8
- 19
1
vote
1 answer
Can I use Pact broker for Functional Tests?
I have a service that receives a request, generates an email, saves the email to message queue (to be sent by other microservice) and returns httpStatus.Ok.
I want to test that for different requests a relevant email will be generated.
According to…

Michael Freidgeim
- 26,542
- 16
- 152
- 170
1
vote
2 answers
Springboot pact testing with broker
I have a pact broker running on AWS cloud. I can see some description saying "A pact between app-a-service and app-b-service" at some example url like demo.service.aws.cloud/demo-service/latest" shows the Interactions.
This is the response on the…

Katlock
- 1,200
- 1
- 17
- 41
1
vote
1 answer
Provider test integration with pact broker for Spring Boot junit5 + configuration in application properties
The pact-jvm-provider-spring states that for junit5 provider test, it is not required to use the spring library.
However, @PactBroker annotation depends on the system properties. Is there a way to get this working for application properties via the…

Varesh
- 1,648
- 2
- 14
- 22