pact-js
pact-js copied to clipboard
Feature Request - MessagePact - Lambda - support Request response style messages/requests
Software versions
Mac OSX - 10.14.5 "@pact-foundation/pact": "^8.2.6",
- Node Version: v10.16.0
I need a way to test a contract between 2 lambdas with direct invokes and response style messaging. For example, I have 2 Lambdas. We'll call them lambda 1 and lambda 2. Lambda 1 directly invokes lambda 2 and waits for the response from the lambda function. To me its almost like Rest API call with request and response but I cant figure out how to do this with Pact and lambda. Looks like the messaging feature does not support this and it would be very helpful.
Not sure how to get around this at the moment.
Thanks @cpothier.
For future work on this, see https://gist.github.com/bethesque/c858e5c15649ae525ef0cc5264b8477c#gistcomment-2297049 for some background / thinking.
(and for those who update the gist relating to this, please update this ticket manually as gist notifications aren't a thing).
I think it can be related to this feature request: https://pact.canny.io/feature-requests/p/support-multiple-protocols-of-pact-for-the-same-application
Sure is @jeesus. I'll add it to the #413 backlog. There is another type of async we should look to eventually support also - "event" types, where the provider is not known. But this will require much more wide-reaching changes as the broker doesn't support it and all of the clients will need to know about it.