Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cpothier opened this issue Jun 19, 2019 · 3 comments

Comments

@cpothier
Copy link

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.

@mefellows
Copy link
Member

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

@jeesus
Copy link

jeesus commented Mar 6, 2020

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

@mefellows
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants