Hello I have just found the pact_verifier_cli, un...
# pact-rust
s
Hello I have just found the pact_verifier_cli, until now I have been using the standalone ruby provider-verifier From what I gather, the rust implementation seems to be the best moving forward? Can anyone confirm it allows injecting values from provider state callbacks? https://docs.pact.io/roadmap/feature_support says no but it seems to be in the changelog https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_verifier_cli/CHANGELOG.md
👍 1
m
Yes, it doesn’t look to be documented (here: https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier_cli#state-change-requests) but in the state change requests, you will receive a payload with the provider state and any parameters (this endpoint will be called once per state for each tests i.e. there is a many-to-one relationship of states to tests). In the response to a state change URL, you can respond with a JSON object with any injected values. The keys in that JSON must match the keys for the value to be injected
s
awesome, thank you
👍 1