-
Notifications
You must be signed in to change notification settings - Fork 33
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
test: REST multipart upload listing, completion #912
Conversation
d57f10a
to
11a5e3f
Compare
tests/util_bucket.sh
Outdated
|
||
# params: client, bucket name | ||
# return 0 for success, 1 for error | ||
delete_bucket_or_contents() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little confused as to this method - why isn't it two methods? One for deleting only bucket contents and one for deleting the bucket itself? Considering that it is mainly just a wrapper with an variable check it just seems weird to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was just to combine operations for static and non-static bucket cleanup. For both, occasionally you need to delete individual objects due to WORM protection. And just to avoid putting the static check in each test. If you think there's a better way to do it though, let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could maybe just use different naming to be clearer what is going on - bucket_cleanup? bucket_cleanup_worm_compliant? And then add a comment to each section explaining why there's different operations for static/non-static.
tests/util_bucket.sh
Outdated
|
||
# params: client, bucket name | ||
# return 0 for success, 1 for error | ||
delete_bucket_or_contents_if_exists() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here? Seems like the 'or' clause belongs a level higher in the code and not in a method name.
11a5e3f
to
f9b2cf4
Compare
f9b2cf4
to
bf4fc71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easier for me to read, thanks.
No description provided.