Pact.PactVerifier.VerificationOptions (pact_verifier_ex v0.1.6)

Copy Markdown

Options to use when running the verification.

Fields

  • request_filter - Request filter callback.
  • disable_ssl_verification - Ignore invalid/self-signed SSL certificates.
  • request_timeout - Timeout in ms for verification requests and state callbacks.
  • custom_headers - Custom headers to be added to the requests to the provider.
  • coloured_output - If coloured output should be used (using ANSI escape codes).
  • no_pacts_is_error - If no pacts are found to verify, then this should be an error.
  • exit_on_first_failure - Exit verification run on first failure.
  • run_last_failed_only - Only execute the interactions that failed on the previous verifier run.
  • follow_redirects - If redirects should be automatically followed.
  • broker_request_retries - Number of times to retry failed HTTP requests to the Pact Broker (retries on 5xx, 408, and 429). Default is 8.

Summary

Types

t()

@type t() :: %Pact.PactVerifier.VerificationOptions{
  broker_request_retries: integer(),
  coloured_output: boolean(),
  custom_headers: map(),
  disable_ssl_verification: boolean(),
  exit_on_first_failure: boolean(),
  follow_redirects: boolean(),
  no_pacts_is_error: boolean(),
  request_timeout: integer(),
  run_last_failed_only: boolean()
}

Functions

default()

@spec default() :: t()