Questions tagged [pact-broker]
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.
61
questions
0
votes
0
answers
18
views
Change the request parameter in the state pact provider
can change the parameter of a request in the pact provider, and how?
Here is what I have:
My consumer which is written in JS:
describe("/DELETE disable a user", () => {
it("...
0
votes
1
answer
35
views
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 ...
0
votes
0
answers
26
views
Pact Broker UI not visualizing usage of matchingRules and generators
When my PACT contains type matchers only instead of matching concrete values of Strings for example, my PACT Broker UI does not visualize that and thus, raising the impression for the provider that I ...
0
votes
2
answers
106
views
How can I pass can-i-deploy stage in Gitlab?
The error it gives in the can-i-deploy stage in the Pipeline is as follows:
The verification between the latest version of BusinessEventConsumerCustomerConsentionPhoneCall with tag phoenix (fd53a677) ...
2
votes
1
answer
98
views
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 ...
0
votes
2
answers
164
views
pact.io: Select specific endpoints for provider test
We are running a microservice architecture and want to set up contract testing in our project. Our consumers do not know which request is handled by which microservice. We want our microservices to ...
0
votes
1
answer
95
views
Backward Compatibility of Pacts
How can I verify the pacts against all the different consumer versions. Whenever I try to test the pact , it only verifies the latest one. Is there a way to also verify the older consumer versions.
I ...
0
votes
1
answer
347
views
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 ...
0
votes
1
answer
82
views
contract content changed triggered even if no changes to contract
I have set up pact broker with docker image dius/pact-broker:2.40.0-1, my pacticipants are tagged as 'master' and versioned by commit SHA. Webhook 'contract content changed' established on broker. The ...
0
votes
0
answers
110
views
PACT Node - ConsumerVersionSelector - Pacticipant and Version Not Honored
OS: Mac OSX 10.15.7_
Pact: 9.15.5
Pact Node version: 10.12.2
Node Version: 12.13.0
Im sure I'm doing something wrong, but I'm not sure how to get that working.
I have 2 clients (ClientA and ClientB) ...
1
vote
1
answer
129
views
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 ...
0
votes
1
answer
248
views
PactBroker throws java.net.ConnectException: Operation timed out (Connection timed out)
I have a pact broker server hosted at https://mytestbroker.com. I am able to browse the broker page.
When I run mvn test, the contract test fails with Connection timed out error.
curl -i https://...
0
votes
1
answer
61
views
Pact CDC: Cleaning up older consumer and provider version from Broker periodically
I have set up a pack broker locally and ran few iterations of consumer and provider.
The list of verified pact over few days has gone to 100 now.
I am looking for options to clear the contracts and ...
0
votes
1
answer
54
views
How to take take backup of existing Pact contracts from Pact-broker?
Is there a way to download all pacts and its history from PactBroker? I want to download all the pacts with any history and then upload to a new pactbroker server. Is there a way to do that? I didn'...
0
votes
1
answer
581
views
How to secure communication between Pact Broker, Consumer and Provider
We are planning to implement CDC in our project and Pact is being considered as primary candidate. Currently I am working on a POC to set up end to end flow with CI/CD integration with GitLab. I have ...
0
votes
1
answer
319
views
Pact flow for Event Driven Applications
Although Pact supports testing of messages, I find that the recommended flow in the "Pact Nirvana" doesn't quite match the flow that I understand an Event Driven Application needs.
Let's say ...
0
votes
1
answer
364
views
Using Pact-Broker Behind Reverse Proxy And URL Rewrite in Kubernetes & Istio
I deployed the pact-broker docker image (latest version) in a local Kubernetes cluster with the following deployment.
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-pact-broker
...
spec:...
1
vote
1
answer
131
views
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 ...
0
votes
1
answer
173
views
Database Support for Pact Broker
We are planning to implement customize Pact Broker and implement it as our own application in our workplace rather using any existing docker image.
I know Pact Broker is recommended to use with ...
1
vote
2
answers
2k
views
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 ...
1
vote
1
answer
184
views
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 ...
0
votes
1
answer
951
views
how to write a pact-jvm consumer driver pact test using junit 5 spring boot?
I am new in writing PACT test cases. I have a very simple scenario, a microservice is running on dev server which return true or false based on the Path Variable (its a GET call). How to write a test ...
1
vote
2
answers
774
views
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" ...
0
votes
1
answer
2k
views
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 ...
0
votes
1
answer
74
views
Role of IMockProviderService.VerifyInteractions in Pact?
What is the Role of IMockProviderService.VerifyInteractions in Pact?
and what is the best practice to use it?
0
votes
1
answer
369
views
Pact CDC Testing Best Practice
I've read articles like this one that suggest verifying contracts on the provider side that exist in a consumer's feature branch, in effect allowing the contract to be "pre-verified" before being ...
1
vote
1
answer
384
views
Pact Consumer / Provider based in data type and not in data value
We are currently using Pact-Broker in our Spring Boot application with really good results for our integration tests.
Our tests using Pact-Broker are base in a call to a REST API and comparing the ...
1
vote
1
answer
524
views
Can't send tag name for provider in Java to Pact Broker
As you see below ,I have passed to JVM system properties values of "pact.provider.tag", "pact.provider.version", "pact.verifier.publishResults".The results is publishing to the Pact Broker ,but tag ...
0
votes
1
answer
480
views
unable to publish result to pact broker
I am trying to publish verification result on pact broker host on localhost:9292 using the below command:
curl -XPOST -H 'Content-Type: application/json' -d@/home/ec2-user/pact-ruby/example/zoo-app/...
1
vote
1
answer
138
views
fail to publish to Pack-Broker: duplicate key value violation
We are now facing a problem when re-publish pacts to the broker when the version and tag remain the same, but the content of the pact is changed between (re)publish trials
Recently our CICD started ...
1
vote
0
answers
172
views
Setting base url of the Pact broker
I'm running pact-broker-docker in my ECS. Currently verificationResultUrl is pointing to an IP address and so are other URLs of my pact system. I am assuming that is my docker private address. How can ...
0
votes
1
answer
195
views
Database other than PSQL for pact broker
Can we use SQL server as the database for pact broker? I don't see any documentation related to that anywhere. The problem is that I don't have PostgreSQL at my workplace and I was asked to evaluate ...
0
votes
1
answer
321
views
Pact-broker : Cannot able to see pact broker screen in http://localhost:8080/
I'm new to pact. followed the instructions https://github.com/DiUS/pact_broker-docker/blob/master/POSTGRESQL.md to set up the pact-broker in dockerized environment.
The containers Up and running.
In ...
1
vote
1
answer
407
views
Start-Process : The system cannot find the file specified from TeamCity Build step but works fine locally
i am trying to run Pact broker can i deploy tool with paramaters which is working fine locally but when i add the build step in TeamCity it is throwing below error
Start-Process : This command ...
1
vote
1
answer
668
views
how to run PACT Broker can-i-deploy script?
i have downloaded the zip file https://github.com/pact-foundation/pact_broker-client#can-i-deploy and running the below command in my bash but i am getting error, what i am doing wrong
my plan was ...
2
votes
1
answer
1k
views
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 ...
2
votes
1
answer
986
views
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....
0
votes
2
answers
40
views
Persistence of data in each iteration of PactVerify in the provider
What is the best way to perform a test of contracts, when the endpoint of the provider performs a persistence of data?
For example, the registration of a client. Should I consider the rollback of the ...
0
votes
1
answer
996
views
Unable to publish the 'Last Verified' status in PACT Broker
For microservices contract tests, am using PACT with gradle 4.4 and here is my build.gradle:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'au.com.dius:pact-jvm-...
2
votes
1
answer
4k
views
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, ...
0
votes
1
answer
2k
views
Pact does not send provider-verification result to pact broker if junit 5 test fails
I have created a REST-service with spring. Now I want to use pact and junit 5 to test the consumer-provider-communication. I have already a running pact-broker (from https://github.com/jaimeniswonger/...
0
votes
1
answer
228
views
Get dependency map API [pact-broker]
Is there a way to get full dependency map of all contracts from the Pact Broker (preferably in json format)?
There is an API call used in the graph: https://<broker-url>/groups/<service>....
0
votes
2
answers
442
views
how to connect pact-broker docker container to local postgresql database?
My dockerfile is as follows:
FROM phusion/passenger-ruby24:0.9.26
ENV APP_HOME=/home/app/pact_broker/
RUN rm -f /etc/service/nginx/down /etc/nginx/sites-enabled/default
COPY container /
RUN gem ...
0
votes
1
answer
285
views
using pact-broker webhooks locally?
I have setup the pact broker locally and able to publish the pacts which are also verified by the provider successfully. I am at the point to use webhook which kicks off a build of the provider ...
1
vote
2
answers
2k
views
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()
....
3
votes
1
answer
822
views
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 ...
1
vote
1
answer
556
views
How to verify Pacts against multiple versions of PACTS published
I have used pact-jvm-provider-maven/ plugin to publish different versions (1.0.0 and 2.0.0) of pacts to Pact-Broker. I'm using following configuration to verify the pacts against the hosted Provider......
0
votes
1
answer
257
views
Not able to install dockerized Pact-broker on centos
I'm trying to setup pact broker in centos machine using the instructions mentioned at https://github.com/DiUS/pact_broker-docker
I have installed docker and installed postgresql (not in docker ...
0
votes
1
answer
624
views
Unable to verify https endpoint with pact-jvm-provider-maven_2.11 in pact broker
This is my pom snippet for service providers
<serviceProviders>
<serviceProvider>
<name>StoreSite</name>
...
0
votes
1
answer
40
views
Using Pact Framework for MSA using SDKs
I am trying to introduce Pact in our company. However the consumer calls APIs using providers SDKs and the host-port is dynamically determined using Kubernetes. I am new to all this backend technology ...