Git Product home page Git Product logo

pact-proxy's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pact-proxy's Issues

Add configuration options to pact proxy

We think it would be useful to be able to set global configuration options on the pact proxy server.

In particular, to control the retry timing for WaitForInteraction

We would also like to add some new features which should perhaps be disabled by default, so config would be useful for this as well.

Make Error Response Configurable

Currently pact-proxy returns a 500 response with an empty body when a pact does not match.

This causes problems debugging for two reasons:

  1. Our client code will retry multiple times on a 500 error, which fills the logs with noise.

  2. Our swagger client tries to unmarshall the empty body which gives a misleading error on the client side.

We would like to override the default error status code and response body. This could be configurable at a global level.

Add new endpoint to pact proxy to read interactions and request history

It would be useful in integration tests to be able to get more information about the interactions and requests made to the pact proxy, for example details of the actual request(s) and response(s).

This would be useful for more detailed assertions, e.g. what specific UUIDs were posted, as well as for capturing those UUIDs for use in the workflow tests.

As this may use more memory on the pact-proxy server, we could make this feature disabled by default and enable it based on some environment variable or config setting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.