Hi again! I'm attempting to troubleshoot provider ...
# pact-net
a
Hi again! I'm attempting to troubleshoot provider states in my middleware code, but the only request body ever received by the provider-states endpoint is this: {"action":"setup","params":{},"state":""} I do see all of the tests running and that appears to be in working order, but I don't know why the endpoint never gets anything other than setup as an action with no states being sent. Any ideas on what could be going wrong here? The pact that I am testing was published to Pactflow.
m
Are there any states in the pact file?
If you set debug logging it should give us some more info
a
I'm not using a file, the pact is coming from a Pactflow server
m
Sure, but does the pact have states in it?
a
I can't tell from looking at it, it's what was published from the consumer
m
Can you share a screenshot of this page? Or do any of the interactions have a "given ..." in the descriptions?
a
they just have the line for the endpoint, ie: POST: /api/Employee/Add
m
Sounds like you don’t have any states - that’s probably the answer
the empty state is a default state that every interaction gets, in order to create a hook to setup/teardown interactions (it’s a framework level feature)
👍 1
a
okay, I'll have to have a talk with the person who's works on creating the pacts on the consumer end. Thanks!
👍 1