Skip to content

Commit

Permalink
docs(pact_verifier_cli): Update README with returning values from pro…
Browse files Browse the repository at this point in the history
…vider state callbacks #441
  • Loading branch information
rholshausen committed Jul 11, 2024
1 parent 57c0bc8 commit 5ba47b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rust/pact_verifier_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ content-type: application/json

If any parameters are configured for the provider state, they will be passed in the *"params"* attribute.

The provider state callback can return a map (JSON object) of values that can then be used by things like the
Provider State Generator to inject values. The returned map of values will fall back to the provider state parameters.

#### `-s, --state-change-url <state-change-url>`

This sets the absolute URL that the POST requests will be made to before each actual request. If this value is not
Expand All @@ -215,7 +218,7 @@ option forces it to be sent as query parameters instead.
This option will cause the verifier to also make a tear down request after the main request is made. It will receive a
field in the body or a query parameter named `action` with the value `teardown`.

#### `--consumer-version-selectors`
### `--consumer-version-selectors`

Accepts a set of [Consumer Version Selectors](https://docs.pact.io/pact_broker/advanced_topics/consumer_version_selectors/) encoded as JSON.

Expand Down

0 comments on commit 5ba47b9

Please sign in to comment.