The Wayback Machine - https://web.archive.org/web/20210725154924/https://github.com/localstack/localstack/pull/4273
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

S3 reference style detection fixes #4273

Merged
merged 11 commits into from Jul 9, 2021
Merged

Conversation

@rezafuru
Copy link
Member

@rezafuru rezafuru commented Jul 8, 2021

Extend s3 unit tests and fix regex that distinguishes between host and path based bucket references
#4254

Alireza Furutanpey added 5 commits Jul 8, 2021
…nd host style s3 bucket references: 1) Any host style reference with a key did ot match, 2) {expr}*.localhost always a match, 3) {expr}*.s3.{region} did not match
…h style references

make edge.py use the existing util method instead of re-implementing the regex match itself
fix the following issues with the regex to distinguish between path and host style s3 bucket references: 1) Any host style reference with a key did ot match, 2) {expr}*.localhost always a match, 3) {expr}*.s3.{region} did not match

extend s3 unit tests to test whether URIs are correctly distinguished between host and path style reference
…stack/localstack into s3-reference-style-detection-fixes
@rezafuru rezafuru requested a review from thrau Jul 8, 2021
Alireza Furutanpey added 3 commits Jul 8, 2021
@coveralls
Copy link

@coveralls coveralls commented Jul 8, 2021

Coverage Status

Coverage increased (+0.02%) to 74.554% when pulling 34db269 on s3-reference-style-detection-fixes into 19e8880 on master.

@whummer
whummer approved these changes Jul 9, 2021
Copy link
Member

@whummer whummer left a comment

Great, thanks for this enhancement @rezafuru ! 🎉

@thrau
thrau approved these changes Jul 9, 2021
Copy link
Member

@thrau thrau left a comment

looks great, well done! the comments are very helpful

@thrau thrau merged commit 1c4e172 into master Jul 9, 2021
6 checks passed
6 checks passed
ci/circleci: docker-build Your tests passed on CircleCI!
Details
ci/circleci: install Your tests passed on CircleCI!
Details
ci/circleci: itest-elasticmq Your tests passed on CircleCI!
Details
ci/circleci: itest-lambda-docker Your tests passed on CircleCI!
Details
ci/circleci: preflight Your tests passed on CircleCI!
Details
coverage/coveralls Coverage increased (+0.02%) to 74.554%
Details
@thrau thrau deleted the s3-reference-style-detection-fixes branch Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants