Thanks to visit codestin.com
Credit goes to github.com

Skip to content

replace s3 legacy rules with RestServiceOperationRouter #6839

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

Closed
wants to merge 1 commit into from

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Sep 7, 2022

While working on the migration of the s3 provider, @alexrashed provided us with a new rule for routing s3 requests, now that we can use the s3 specs, even if the default provider is still the currently used one and not ASF.
The s3 legacy routing rules are commented out to compare, we can safely delete them if RestServiceOperationRouter does the same job but better.
We only keep the host matching rule for now to correctly dispatch request containing the bucket in the host, as the path matching would not work.
The s3 test suite runs with this change, this PR will test it against the whole test suite.

Note: I will delete the commented part before merging

@bentsku bentsku temporarily deployed to localstack-ext-tests September 7, 2022 12:39 Inactive
@github-actions
Copy link

github-actions bot commented Sep 7, 2022

LocalStack integration with Pro

       3 files         3 suites   1h 15m 3s ⏱️
1 274 tests 1 223 ✔️ 51 💤 0
1 699 runs  1 617 ✔️ 82 💤 0

Results for commit 57191bb.

♻️ This comment has been updated with latest results.

@bentsku
Copy link
Contributor Author

bentsku commented Sep 7, 2022

First error: it sets the ServiceModel in request.context of /health and /_localstack to s3, which messes up CORS. But still correctly dispatch to the good endpoint.

@bentsku bentsku temporarily deployed to localstack-ext-tests September 7, 2022 14:49 Inactive
@bentsku bentsku force-pushed the remove-s3-legacy-routing branch from d109a93 to 57191bb Compare September 7, 2022 20:13
@bentsku bentsku temporarily deployed to localstack-ext-tests September 7, 2022 20:13 Inactive
@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 81.645% when pulling 57191bb on remove-s3-legacy-routing into a7014a8 on master.

@bentsku bentsku marked this pull request as ready for review September 7, 2022 21:40
@bentsku bentsku requested a review from alexrashed as a code owner September 7, 2022 21:40
@bentsku bentsku marked this pull request as draft September 8, 2022 10:16
@bentsku
Copy link
Contributor Author

bentsku commented Sep 8, 2022

Putting this back to the drafts, as changes will still happen to the router. We can reopen and make the necessary changes once things are set.

@alexrashed alexrashed removed their request for review November 23, 2022 09:42
@bentsku bentsku force-pushed the remove-s3-legacy-routing branch from 57191bb to affa76c Compare November 25, 2022 15:16
@bentsku bentsku temporarily deployed to localstack-ext-tests November 25, 2022 15:16 Inactive
@bentsku bentsku closed this Mar 27, 2023
@bentsku bentsku deleted the remove-s3-legacy-routing branch March 27, 2023 16:16
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

Successfully merging this pull request may close these issues.

2 participants