Pact Ref Mock Server

Pact Reference Mock Server is a tool that acts as a stand-in for a real web service during software testing.

  • Development
  • Tools & Utilities
Pact Reference Mock Server is a tool that acts as a stand-in for a real web service during software testing. It allows developers to check that different parts of a system communicate correctly without needing the entire network to be active, ensuring reliable and efficient performance.

Platform availability

Available on 0 of 10 platforms

  • Unraid (not listed)
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server (not listed)

Health score

Not enough data yet for a health score. It needs at least 2 of 4 factors: maintenance, popularity, ease of install, resource needs.

No GitHub repository data collected yet.

Resources & Compatibility

ARM (e.g. Raspberry Pi) is supported.

Checked 54 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Download the right binary first Download the Linux binary that matches your machine's architecture, extract it, and run --help to confirm it runs. If the file is for the wrong CPU type or is missing, the mock server command will not start. source
  • Pick a free port and save folder When you start the server, choose a free port and a folder you can write to. If the port is taken or the folder is read-only, the mock server will fail to start or save its files. source
  • Install the CSV plugin if needed If your tests use CSV data, install the CSV plugin from the Pact plugin release page before starting the mock server. Without it, Pact will not know how to match CSV payloads and the tests may fail. source

Fetched 53 days ago - each note links to its source

Alternatives

No alternatives collected yet.

Common questions

What should I check if the pact-mock-server command does not start?

Download the binary that matches your machine's architecture, extract it, and run --help to confirm it runs. If the file is for the wrong CPU type or is missing, the command will not start.

How can I control the lifecycle of a running Pact mock server?

The lifecycle can be controlled by the RESTful web API or through the command line interface. It implements the V4 Pact specification.

What extra component is needed for CSV test data?

Install the CSV plugin before starting the mock server if your tests use CSV data. Without it, Pact may not know how to match CSV payloads and tests may fail.

Why can a proxy configuration cause Pact mock server checks to fail?

Pact attempts to ensure the mock service can be communicated with before tests run. It does this via an HTTP call that will be sent through any intermediate proxies if configured.

Why does the mock server not run when PactProviderRule is present?

The mock server may not run because Pact fragments are not generated properly. Make the createFragment method public so fragments are generated correctly.

Answers sourced from docs.pact.io, docs.pact.io, docs.pact.io, docs.pact.io, groups.google.com

Community

Collected 48 days ago - public community threads