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

Skip to content

implement S3 native bucket versioning #8799

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

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Aug 1, 2023

This PR implements Bucket Versioning in the new native S3 provider. This in turn allowed me to properly tests what I had already written but couldn't test because I couldn't actually enable the versioning, and fix what was wrong.

This PR also contains a new feature in the serializer: we couldn't add headers to exceptions, when S3 actually does that. I'm not sure this is common to all XML protocol based services, so I contained it only in S3 for now. I tried to keep the same existing logic as much as I could, but applied to exceptions.

@bentsku bentsku added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label Aug 1, 2023
@bentsku bentsku changed the base branch from master to s3-native-multiparts August 1, 2023 21:19
@bentsku bentsku added the aws:s3 Amazon Simple Storage Service label Aug 1, 2023
@bentsku bentsku self-assigned this Aug 1, 2023
@coveralls
Copy link

coveralls commented Aug 2, 2023

Coverage Status

coverage: 81.806% (-0.008%) from 81.814% when pulling e86455d on s3-native-versioning into 9de0114 on master.

@bentsku bentsku force-pushed the s3-native-multiparts branch from 35742aa to b874cea Compare August 4, 2023 17:26
@bentsku bentsku force-pushed the s3-native-versioning branch 2 times, most recently from 59ee74f to 6abdab2 Compare August 4, 2023 17:44
@bentsku bentsku force-pushed the s3-native-multiparts branch from 26a399d to 733f722 Compare August 4, 2023 20:47
@bentsku bentsku force-pushed the s3-native-versioning branch from 6abdab2 to 08162e0 Compare August 7, 2023 14:51
@bentsku bentsku force-pushed the s3-native-multiparts branch 3 times, most recently from 9686f44 to d8dbb04 Compare August 8, 2023 02:32
@bentsku bentsku force-pushed the s3-native-versioning branch from 08162e0 to 1fd8bd6 Compare August 8, 2023 02:35
@bentsku bentsku force-pushed the s3-native-multiparts branch from d8dbb04 to 6df3c6d Compare August 8, 2023 13:30
@bentsku bentsku force-pushed the s3-native-versioning branch from 1fd8bd6 to e77d9bf Compare August 8, 2023 14:04
Base automatically changed from s3-native-multiparts to master August 8, 2023 14:50
@bentsku bentsku force-pushed the s3-native-versioning branch from e77d9bf to 61947dd Compare August 8, 2023 15:35
@@ -5982,6 +5982,7 @@ def test_post_request_missing_signature(
)

# AWS seems to detected what kind of signature is missing from the policy fields
print(response.content)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

will remove in the next PR if possible, as I wouldn't want to rebase everything. It could be merged right after!

@bentsku bentsku marked this pull request as ready for review August 8, 2023 15:41
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 25m 46s ⏱️
2 044 tests 1 655 ✔️ 389 💤 0
2 045 runs  1 655 ✔️ 390 💤 0

Results for commit e86455d.

♻️ This comment has been updated with latest results.

@bentsku bentsku force-pushed the s3-native-versioning branch from 61947dd to 0888220 Compare August 8, 2023 22:01
Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

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

LGTM! nice that it's so easy :D i'll let @alexrashed sign off on the serializer change

Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

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

Awesome! The latest revision of the serializer changes are great and perfectly generalized! 🚀

@bentsku bentsku force-pushed the s3-native-versioning branch from 0888220 to e86455d Compare August 9, 2023 13:11
@bentsku bentsku merged commit ed995fd into master Aug 9, 2023
@bentsku bentsku deleted the s3-native-versioning branch August 9, 2023 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:s3 Amazon Simple Storage Service semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants