Expand description
The verifier
module provides a number of exported functions using C bindings for
controlling the pact verification process. These can be used in any language that supports C bindings.
Modules§
- Handle interface to creating a verifier
- Exported verifier functions
Structs§
- Contain the various attributes of an argument given to the verifier
- Contain the lists of the two types of argument: options and flags
Functions§
- Adds a custom header to be added to the requests made to the provider.
- Adds a Pact directory as a source to verify. All pacts from the directory that match the provider name will be verified.
- Adds a Pact file as a source to verify.
- Adds a new transport for the given provider. Passing a NULL for any field will use the default value for that field.
- Adds a Pact broker as a source to verify. This will fetch all the pact files from the broker that match the provider name.
- Adds a Pact broker as a source to verify. This will fetch all the pact files from the broker that match the provider name and the consumer version selectors (See
https://docs.pact.io/pact_broker/advanced_topics/consumer_version_selectors/
). - External interface to retrieve the options and arguments available when calling the CLI interface, returning them as a JSON string.
- Runs the verification.
- Extracts the verification result as a JSON document. The returned string will need to be freed with the
free_string
function call to avoid leaking memory. - Extracts the logs for the verification run. This needs the memory buffer log sink to be setup before the verification is executed. The returned string will need to be freed with the
free_string
function call to avoid leaking memory. - Extracts the logs for the verification run for the provider name. This needs the memory buffer log sink to be setup before the verification is executed. The returned string will need to be freed with the
free_string
function call to avoid leaking memory. - pactffi_verifier_newDeprecatedGet a Handle to a newly created verifier. You should call
pactffi_verifier_shutdown
when done with the verifier to free all allocated resources. - Get a Handle to a newly created verifier. You should call
pactffi_verifier_shutdown
when done with the verifier to free all allocated resources - Extracts the standard output for the verification run. The returned string will need to be freed with the
free_string
function call to avoid leaking memory. - Enables or disables coloured output using ANSI escape codes in the verifier output. By default, coloured output is enabled.
- Set the consumer filters for the Pact verifier.
- Set the filters for the Pact verifier.
- Enables or disables if no pacts are found to verify results in an error.
- Set the provider details for the Pact verifier. Passing a NULL for any field will use the default value for that field.
- Set the provider state URL for the Pact verifier.
- Set the options used when publishing verification results to the Pact Broker
- Set the options used by the verifier when calling the provider
- Shutdown the verifier and release all resources
- Adds a URL as a source to verify. The Pact file will be fetched from the URL.
- pactffi_verify⚠DeprecatedExternal interface to verifier a provider