Module pact_verifier::pact_broker
source · Expand description
Structs and functions for interacting with a Pact Broker
Structs§
- Structure to represent a HAL link
- HAL aware HTTP client
- Structure to represent a HAL link
- Provides the context on why a Pact was included
- Properties associated with the verification context
- Request to send to determine the pacts to verify
Enums§
- Errors that can occur with a Pact Broker
- Struct that wraps the result of a verification test
Functions§
- Fetch the Pact from the given URL, using any required authentication. This will use a GET request to the given URL and parse the result into a Pact model. It will also look for any HAL links in the response, returning those if found.
- Fetch Pacts from the broker using the “provider-pacts-for-verification” endpoint
- Fetches the pacts from the broker that match the provider name
- Publishes the result to the “pb:publish-verification-results” link in the links associated with the pact