Ivan Mikhalka
01/21/2023, 2:30 PMpath/to/endpoint/userId/12345
and then replace it on the fly.
When storing pact file locally, we used to use sed
for replacing placeholder with actual id, like sed s/12345/$ACTUAL_USERID/g
, but it’s not the case when switching to pact broker.
Could this be done via requestFilter
from plugin or somehow else?
I know it’s not the best practice, but we need some workaround for nowMatt (pactflow.io / pact-js / pact-go)
fromProviderState
matcher you could use for this, or as you note, request filters could also workMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Ivan Mikhalka
01/23/2023, 12:45 AMIvan Mikhalka
01/23/2023, 12:47 AMsetHeader
, setURI
etc.