Expand description
The pact_verifier
crate provides the core logic to performing verification of providers.
It implements the V3 (https://github.com/pact-foundation/pact-specification/tree/version-3
)
and V4 Pact specification (https://github.com/pact-foundation/pact-specification/tree/version-4
).
Re-exports§
pub use callback_executors::NullRequestFilterExecutor;
pub use crate::pact_broker::ConsumerVersionSelector;
pub use crate::pact_broker::PactsForVerificationRequest;
Modules§
- callback_
executors - Executor abstraction for executing callbacks to user code (request filters, provider state change callbacks)
- metrics
- Structs for collecting metrics for verification
- pact_
broker - Structs and functions for interacting with a Pact Broker
- provider_
client - Module for building HTTP requests required by the verifier. Note that this is an internal module made public for testing purposes, and there are no guarantees that the structures and functions won’t change.
- selectors
- Module to deal with consumer version selectors
- verification_
result - Structs for storing and returning the result of the verification execution
Structs§
- Provider
Info - Information about the Provider to verify
- Provider
Transport - Information about the Provider to verify
- Publish
Options - Options for publishing results to the Pact Broker
- Verification
Options - Options to use when running the verification
Enums§
- Filter
ById - Filter information used to filter the interactions that are verified by ID
- Filter
Info - Filter information used to filter the interactions that are verified
- Mismatch
Result - Result of performing a match
- Pact
Source - Source for loading pacts
Functions§
- interaction_
mismatch_ output - Generate the output for an interaction verification
- verify_
pact_ internal - Internal function, public for testing purposes
- verify_
provider - Verify the provider with the given pact sources.
- verify_
provider_ async - Verify the provider with the given pact sources (async version)