"Did not find an interaction that matches the given key" when using provider state #44
Labels
bug
Something isn't working
smartbear-supported
Issues with this label have been added to the Pactflow team's Jira backlog
If consumer test has created a pact file which includes parametrized state, provider fails with
I'm using pact-go, so it could be related to go, but it works ok with HTTP pacts, that's why I suspected the plugin.
I've also tried with Matt's demo plugin and that one works correctly, but I could've missed something and it's some specific interaction type that's at fault.
Seems like the key is computed based on state, but something is different between provider and consumer?
I've used pact-go official examples to reproduce:
protobuf-state-with-param
branch - https://github.com/stan-is-hate/pact-go/tree/protobuf-state-with-parammake install
which would install pact-go native libmake download_plugins
which would pull all of them - required to rundemo-plugin
; though protobuf will be an older one)make demo-error
will run consumer grpc test, then provider grpc test.make demo-no-error
will do the same for http tests.Notes:
The text was updated successfully, but these errors were encountered: