Questions tagged [pact]

Pact is a cross-language tool that provides Consumer Driven Contracts testing.

A Contract is a collection of agreements between a client (Consumer) and an API (Provider) that describes the interactions that can take place between them.

Consumer Driven Contracts is a pattern that drives the development of the Provider from its Consumers point of view.

Pact is a testing tool that guarantees those Contracts are satisfied.

pact.io

658 questions
0
votes
2 answers

Pact File upload to pact broker failing

Issue of "Failed to read pacts: NullPointerException" while uploading pact file into the pact broker. Below is my stack trace and POM file details. Please help. Below is my stack trace [INFO] loading pacts from target/pacts [INFO] found pact…
PaChSu
  • 297
  • 3
  • 13
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
1 answer

Pact.js - willRespondWith an arbitrary ordered array

my consumer service asks a provider service for a list of all users, but the provider answers with an arbitrary ordered list (which is fine). The pact execution on consumer side looks fine, but when executing it on the provider site, it says:…
S. Duclos
  • 3
  • 1
  • 2
0
votes
1 answer

Pact: no HttpMessageConverter found for response type

So I have two Spring boot projects. In project A I call out to project B's controller via a service class to retrieve a ResponseEntity containing a list of strings. Project A's service class being the consumer and B being the provider in Pact…
jbailie1991
  • 1,305
  • 2
  • 21
  • 42
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

pact-jvm-provider-maven_2.11 doesn't work with Java7

pact-jvm-provider-maven_2.11 works with Java8, but not Java7. Getting the following error [ERROR] Failed to execute goal au.com.dius:pact-jvm-provider-maven_2.11:3.5.0:verify (default-cli) on project product-xapi-service: Execution default-cli of…
Kolli
  • 41
  • 6
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-broker docker image is not running after restarting docker machine

I am using Postgres image and past broker image in my docker machine for setting up pact broker. here are 4 steps that have mentioned : 1.$ docker run --name pactbroker-db -e POSTGRES_PASSWORD=ThePostgresPassword -e POSTGRES_USER=admin -e…
0
votes
1 answer

Getting messages "dius/pact_broker docker image is deprecated" in Pact broker browser

I am using PAct broker docker image and Postgres docker image for my PAct broker. Until last week it was working fine. Today I have deleted the pack broker docker container and images and downloaded it fresh from dius/pact-broker. after that I am…
0
votes
1 answer

multiple pact version support from PACT-Broker

I am using JUnit for generating Pacts and Pacts maven plugin to post the pact into pact broker. I am using below plugin Configuration au.com.dius
0
votes
1 answer

Error: No provider for "framework:pact"

I am trying to use pactJS and to generate pacts. I am using karma / jasmine to run my tests.. Below is my package.json { "name": "andriod-pact", "version": "1.0.0", "description": "This is a microservice that is one of the two consumers of…
abhishek
  • 31
  • 1
  • 6
0
votes
3 answers

Is Contract testing necessary when both consumer and provider are developed by the same company in different scrum teams?

Is Contract testing necessary when both consumer and provider are developed by the same company in different scrum teams ?
0
votes
2 answers

The method getPactFile() from the type ConsumerInfo is deprecated

I've got the following two lines from this example: https://github.com/DiUS/pact-jvm/tree/master/pact-jvm-provider consumer.setPactFile(new File("target/pacts/ping_client-ping_service.json")); testConsumerPact = (Pact)…
KnechtRootrecht
  • 493
  • 1
  • 4
  • 18
0
votes
1 answer

Pact not working for SOAP messages

I am working on passing a SOAP envelop for the pact. As per my understanding PACT supports XML so I wanted to give a try with SOAP message.I have created a sample change student CXF service in Java. Following is my pact test public PactFragment…
0
votes
0 answers

Pact with Spring Cloud Streams

I want to adopt to PACT contract for micro-services. I am using Spring Cloud Stream and I want to integrate contract with Kafka. Is it possible to do so? TIA.
hollycode
  • 11
  • 3