Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 1.52 KB

pact-terminology.md

File metadata and controls

33 lines (17 loc) · 1.52 KB

Pact Terminology

Service Consumer

The service consumer is a component/deployable-unit that initiates HTTP requests to another component/deployable-unit, called the service provider.

Service Provider

The service provider is a component/deployable-unit that responds to the HTTP requests initiated from the service consumer.

Interaction

An interaction is a single request and response pair.

Pact File or Pact Contract

A pact file, also called a pact contract, is a JSON file that contains a collection of interactions for a service consumer and service provider pair, representing the way the service consumer expects the service provider to behave in some specific situations.

Mock Service Provider

The mock service provider is a component/application/service/deployable-unit that responds to an HTTP request from the _service consumer that mock out the actual service provider using a pact contract. It means that integration-like tests initiated from the service consumer can be run without requiring the actual service provider to be available.

Pact Verification

The pact verification is the process by which the service provider receives and verify the pact file created by the service consumer. The service provider verifies a pact file by replaying all the interactions against its actual implementation and checking that the actual responses match those expected in the pact file.

Provider State

...

Pact Specification

...