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

feat(middleware-bucket-endpoint): add object lambda support #2143

Merged
merged 7 commits into from
Mar 17, 2021

Conversation

alexforsyth
Copy link
Contributor

Issue

Issue number, if available, prefixed with "#"

Description

Adding object lambda support with large number of unit tests.

Testing

E2e testing internally. unit tests here.

Additional context

Add any other context about the PR here.


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

@alexforsyth
Copy link
Contributor Author

Looks like there is something up with smithy's 1.7.0 release. Ignore codegen-ci for now

accelerateEndpoint: true,
});
// should never get here
expect(1).toEqual(0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: this won't provide very useful error message, you can validate exactly 1 assertion is called by expect.assertions(1);. Same to other unit tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh TIL. I'll update

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not entirely sure how to replace this with expect.assertion() since this expect shouldn't ever be called here to begin with. I'm thinking possibly change the error message? Maybe something like:

expect("This configuration is invalid and should never get to this line").toEqual(0);

Copy link
Contributor

@AllanZhengYP AllanZhengYP 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 with a minor nit.

@aws-sdk-js-automation
Copy link

AWS CodeBuild CI Report

  • CodeBuild project: sdk-staging-test
  • Commit ID: d4b5f6a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@alexforsyth alexforsyth reopened this Mar 17, 2021
@alexforsyth alexforsyth merged commit 83c591a into aws:main Mar 17, 2021
@github-actions
Copy link

github-actions bot commented Apr 1, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants