hello, question for provider state workflow betwee...
# pact-js
h
hello, question for provider state workflow between consumer / provider so I know consumer test require certain data, so we are using provider state endpoint to inject test data set up in provider. however, in real world, who is responsible for adding / updating provider state and test data? is that provider team should update for consumer or consumer team just add? I think in behind scene, provider / consumer team should discuss prior before write any test ? and provider team should update the state for consumer team? what is the recommendation workflow?
m
They are the consumer team's responsibility to work with the provider team and discuss the states. So you're right - they should communicate! I know some provider teams publish the available states that can be used to help consumer teams know what states that can be used
h
yeap that is make a sense to me ๐Ÿ™‚ thanks Matt
๐Ÿ™Œ 2
HI Matt, me again lol for provider state setup, when ID is randomly generate in provider side, https://github.com/pact-foundation/pact-js/blob/feat/v3.0.0/examples/v3/provider-state-injected/consumer/transaction-service.test.js
fromProviderState
this way is looks great, so consumer can use random id from provider ๐Ÿ™‚ my question is v3 looks like still in beta but I can use it right now? it seems beta for 2years so I believe is it mature enough to use? thanks
m
it seems beta for 2years
oomph. that does hurt to hear, but yes I think youโ€™re safe to use
There has been some progress behind the scenes to refactor this, so Iโ€™m hopeful very soon, that beta tag will be RIP
h
okkkk, thanks Matt ๐Ÿ™‚ sorry I didnt meant to hurt you haha always appreciate your help ๐Ÿ‘