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
1 answer

Use Pact and JUnit to test SSL secured API

I am trying to implement pact tests between two of our server systems, but unfortunately I am struggling with implementing the consumer tests: I included the pact-jvm-consumer-junit_2.11 artifact and created a provided like this using a…
Nitek
  • 2,515
  • 2
  • 23
  • 39
-1
votes
1 answer

can u send code how to publish dot net contract in pact flow andverify at provider side code

I want a little help . I have less experience with automation. Can you send code on how to publish a contract in pact flow? and how to verify the provider-side code. really need very much .send code or reply this message so any one can help.
-1
votes
1 answer

PactSwift how to build on CI

PactSwift: we are unable to generate pact file while running on real time device, so we planned to generate pact file using CI. Please share the information about how to generate and push the Pact file using CI.
-1
votes
1 answer

Does/will pact.io provide support for testNG test framework?

I can see from documentation that pact.io tool can integrate well with junit4 and junit5 to execute tests. https://docs.pact.io/implementation_guides/jvm/readme https://github.com/pact-foundation/pact-jvm/tree/master/consumer Are there any plans…
balazs
  • 1
-1
votes
1 answer

i am verifying a provider pact of OTP service, it has Basic Auth username and password and a header in the request as "Authorization" : "abc"

Code: @TestTarget public final Target target = new HttpTarget("https", "digital-dev.mashreq.com/api/otp-service/api/v1/otp", 8080, "/generate"); private static ConfigurableWebApplicationContext application; @TargetRequestFilter …
-1
votes
1 answer

Pact-Go cannot find the server is running

I'm trying to create a simple consumer-provider contract with Pact and Pact Broker. The consumer is working and it's publishing the interactions to the broker as expected, but the provider is failing to when running the tests. The error is: ---…
Lucas Beier
  • 621
  • 1
  • 7
  • 19
-1
votes
1 answer

Pact Basic test fails

I am trying a simple pact test but its failing giving the error. Below is my code. Is there any issue with the way I'm trying to call pact. ERROR: groovy.json.JsonException: Unable to determine the current character, it is not a string, number,…
user3310115
  • 1,372
  • 2
  • 18
  • 48
-1
votes
1 answer

Is there a way to set up target port after setting up a real Service in Java?

I am trying to verify the pact contract on the provider side, and would like to set up the real service first and then get the service port. So basically, I want to do something below: @TestTarget public final Target target = new…
-2
votes
1 answer

Adding Pact to PATH in Linux

I've gone on both Ubuntu on Virtualbox and on the ubuntu installable for Windows for the sake of installing Pact, but in both versions, it works fine to add the binary and do what this guide says https://github.com/kadena-io/pact#installing-pact…
-2
votes
1 answer

API contract testing with Pact and Angular

I have this function: saveApplication(details: Application): Observable { return this.http.post(`http://localhost:5000/Apply`, details); } And I am writing a Pact Test for it (API contract testing) and below is the…
Jack M
  • 2,564
  • 4
  • 28
  • 49
-2
votes
2 answers

FAILED! 405 The HTTP PUT Method is not supported by this URL [PactBroker]

When sending the publication with localhost, it works correctly. When using it with a fixed IP it is returning error 405. Alone when publishing, the verification works perfectly in both…
-2
votes
1 answer

All pact-js tests are failing with same errors

I am using Pact.js first time for microservice testing. I tried to follow these following examples: …
melis
  • 1,145
  • 2
  • 13
  • 30
-2
votes
1 answer

Starting point for PACT-JS newbie

I found PACT in some videos from youtube and looks great and quite interested to start POC for my team. I've read previous questions and try to follow the examples in Pact-JS, but still had some confusion on very basic stuff, so excuse my noob…
kevmando
  • 917
  • 1
  • 10
  • 17
1 2 3
43
44