Pact.PactVerifier.HttpRequestProviderStateExecutor (pact_verifier_ex v0.1.6)

Copy Markdown

Executor for provider state changes using HTTP requests.

This struct configures how provider state changes are executed via HTTP requests during verification. It allows specifying the URL to call for state changes, whether to perform teardown calls after verification, whether to include the state change in the request body, and how many times to retry the state change call on failure.

Fields

  • state_change_url - The URL to call for provider state changes. If not set, no state change requests will be made.
  • state_change_teardown - If true, a teardown request will be made after verification to clean up provider state.
  • state_change_body - If true, the state change will be sent in the request body as JSON. If false, it will be sent as query parameters.
  • retries - The number of times to retry the state change request if it fails.

Summary

Types

t()

@type t() :: %Pact.PactVerifier.HttpRequestProviderStateExecutor{
  retries: integer(),
  state_change_body: boolean(),
  state_change_teardown: boolean(),
  state_change_url: nil | String.t()
}

Functions

default()

@spec default() :: t()