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

Add support for object locking in minio_s3_bucket resource. #453

Merged
merged 3 commits into from
May 6, 2023

Conversation

Eilyre
Copy link
Contributor

@Eilyre Eilyre commented Apr 24, 2023

This PR implements the option to enable object locking with minio_s3_bucket resource type. There's a new option object_locking, that can be specified for these resources.

Default behavior did not change, and object locking defaults to false.

Reference

@felladrin
Copy link
Collaborator

Hi, @Eilyre! Thanks and congrats for your first contribution! A very welcome addition!
I won't be able to go deep into testing it, but one of the other collaborators will come to review it soon.
Could you please also update the tests to consider the new object_locking property?

@Eilyre
Copy link
Contributor Author

Eilyre commented Apr 26, 2023

Hello, thank you for the warm welcome! I completely forgot the tests, I'll do my best to fix them, but it'll take a bit of time, as currently the tests look more complicated than the application code - I'm fairly new to this.

@Eilyre
Copy link
Contributor Author

Eilyre commented May 3, 2023

I think I have the tests fixed now. There's still one test that fails locally - resource_minio_s3_bucket_notification_test.go:34 (TestS3BucketNotification_queue), but it also fails locally on the master branch without my changes.

Copy link
Collaborator

@felladrin felladrin 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! Let's get this merged!

@felladrin felladrin merged commit 9e948d5 into aminueza:master May 6, 2023
@Eilyre Eilyre deleted the feature/ObjectLocking branch May 8, 2023 05:14
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.

Support Object Locking when creating buckets.
2 participants