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

Typescript test sample: Apigw, Lambda and external API #297

Merged
merged 9 commits into from
Dec 20, 2023

Conversation

RedHeadDigital
Copy link

Issue #, if available:

Description of changes:

This example contains basic examples of TypeScript tests, unit and integration, for AWS API Gateway, Lambda and external APIs where the external API is mocked in a volatile environment.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@RedHeadDigital
Copy link
Author

#298

@brnkrygs brnkrygs self-assigned this Nov 27, 2023
@brnkrygs
Copy link
Contributor

Hi @RedHeadDigital, thanks for the Pull Request!

Just wanted to make sure you know we saw it come through - I'm hoping to take a closer look this week (between re:Invent sessions 😄 )

Copy link
Contributor

@brnkrygs brnkrygs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Mark!

Thanks for your patience waiting for us to take a closer look. Love the work you've done here and I'm excited to get it included in our repo.

I tried out the instructions, and it worked as expected for me.

I included some comments in the README to get fixed up - stuff like broken links. I'd also love to see a bit deeper explanation of the pattern you're using here. Content like why its useful, when to use it, and what tradeoffs you take when going this route.

Happy to take thoughts and feedback on my comments as well!

Thanks again!

typescript-test-samples/apigw-lambda-external/README.md Outdated Show resolved Hide resolved
typescript-test-samples/apigw-lambda-external/README.md Outdated Show resolved Hide resolved
typescript-test-samples/apigw-lambda-external/README.md Outdated Show resolved Hide resolved
typescript-test-samples/apigw-lambda-external/README.md Outdated Show resolved Hide resolved
typescript-test-samples/apigw-lambda-external/README.md Outdated Show resolved Hide resolved
typescript-test-samples/apigw-lambda-external/README.md Outdated Show resolved Hide resolved
typescript-test-samples/apigw-lambda-external/README.md Outdated Show resolved Hide resolved
typescript-test-samples/apigw-lambda-external/README.md Outdated Show resolved Hide resolved
@RedHeadDigital
Copy link
Author

Hi @brnkrygs,

Thank you for your thorough review. I really appreciate the feedback on where to articulate my intent with the pattern I have showcased here.

I hope I've understood and addressed everything you've highlighted.

Thanks again
Mark

@brnkrygs brnkrygs added the typescript Related specifically to the TypeScript language samples label Dec 18, 2023
@brnkrygs
Copy link
Contributor

Hi @RedHeadDigital!

Appreciate the updates, looks like we're making solid progress!

With the tweak adding the Conditional to the MockAPI, I'm seeing an error trying to deploy when IsVolatile is false (there's a comment on the template file with details).

Could you take a look when you get a moment?

Then, last change I've found is to adjust the folder name for your example. If you're contributing on behalf of an organization, we've been appending the organization name to the end of the folder path (check out Datadog's contribution as an example).

Also, apologies for the delayed review.

@RedHeadDigital
Copy link
Author

Hi @brnkrygs

Sure! I'll take a look into that failure 👍🏻

Do you have any guidance on the determining factors for submitting on behalf of an organisation or submitting as an individual?

Thanks
Mark

@brnkrygs
Copy link
Contributor

Hi @brnkrygs

Sure! I'll take a look into that failure 👍🏻

Do you have any guidance on the determining factors for submitting on behalf of an organisation or submitting as an individual?

Thanks Mark

Regarding guidance for organization vs. individual... checking with our team.

@brnkrygs
Copy link
Contributor

Hi @brnkrygs
Sure! I'll take a look into that failure 👍🏻
Do you have any guidance on the determining factors for submitting on behalf of an organisation or submitting as an individual?
Thanks Mark

Regarding guidance for organization vs. individual... checking with our team.

No strong guidance at the moment. Its more about if you see yourself as representing your organization or not. How are you approaching this one?

@RedHeadDigital
Copy link
Author

I'd say that I'm representing myself for this one as the PR for this pattern has emerged from a blog post I wrote that I felt required more detail when focusing on a serverless platform.

Blog: Serverless: Are you seeking confidence from the wrong place?

@brnkrygs
Copy link
Contributor

I'd say that I'm representing myself for this one as the PR for this pattern has emerged from a blog post I wrote that I felt required more detail when focusing on a serverless platform.

Blog: Serverless: Are you seeking confidence from the wrong place?

Sounds good. Last step is to verify that you approve contributing under the License, per the Contributing guidelines. After that I can merge!

@RedHeadDigital
Copy link
Author

I approve this pull request & contribution as per the License set out as part of the Contributing documentation 👍🏻

Thanks again!

Copy link
Contributor

@brnkrygs brnkrygs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for your effort!

@brnkrygs brnkrygs merged commit 69d3a37 into aws-samples:main Dec 20, 2023
@RedHeadDigital
Copy link
Author

Hi @brnkrygs,

Just curious when this pattern will appear on the site?

Thanks
Mark

@brnkrygs
Copy link
Contributor

Hi @brnkrygs,

Just curious when this pattern will appear on the site?

Thanks Mark

Hi @RedHeadDigital

Its merged into the main project repo now, from what I can see. Or, are you talking about a different site?

@RedHeadDigital
Copy link
Author

Hi @brnkrygs,

Maybe it's a misunderstanding I have. I initiated this patterns creation via https://serverlessland.com/testing/patterns, it was my assumption a merge into main would appear on that site.

Thanks
Mark

@brnkrygs
Copy link
Contributor

Ah, OK. No misunderstanding there. It should be synchronized over to that site.

I'll check into the process on our side and see if I can find out what's happening there.

Thanks for checking in.

@brnkrygs
Copy link
Contributor

Hi @RedHeadDigital - we were finally able to clean up the sync process and your pattern is now live on serverlessland. Thanks for your patience!

https://serverlessland.com/testing/patterns/typescript-test-samples-apigw-lambda-external

@RedHeadDigital
Copy link
Author

Hi @brnkrygs

Thanks for the update! Great to see it live 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Related specifically to the TypeScript language samples
Projects
Development

Successfully merging this pull request may close these issues.

2 participants