pact-js icon indicating copy to clipboard operation
pact-js copied to clipboard

Feature Request - MessagePact - Lambda - support Request response style messages/requests

Open cpothier opened this issue 6 years ago • 3 comments

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.

cpothier avatar Jun 19 '19 22:06 cpothier

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).

mefellows avatar Jun 19 '19 23:06 mefellows

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

jeesus avatar Mar 06 '20 10:03 jeesus

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.

mefellows avatar Mar 06 '20 10:03 mefellows