-
Notifications
You must be signed in to change notification settings - Fork 86
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
Updates for force delete and prefix and delim bug #100
Conversation
casibbald
commented
Dec 28, 2024
•
edited
Loading
edited
- Adding force delete
- This functionality is critical for testing against MinIO, which is heavily used in corporate environments, and the API some enterprise-level storage systems utilise.
- Fixes for prefix and delim bug
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #100 +/- ##
==========================================
- Coverage 66.15% 64.95% -1.20%
==========================================
Files 28 28
Lines 2712 2768 +56
==========================================
+ Hits 1794 1798 +4
- Misses 650 699 +49
- Partials 268 271 +3 ☔ View full report in Codecov by Sentry. |
Hi @casibbald, if you want to re-open the PR, I am more than happy to review and merge the changes. Looks like a meaningful improvement. |
Hi Johannes, It's likely a reduced version of the PR may come through with just the prefix/delim bug fix. |
Great to hear that! Will take a look at it shortly! |
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.
Everything looks good! Thanks a lot for the contribution!
One could add to https://github.com/johannesboyne/gofakes3/blob/master/gofakes3_test.go#L486C1-L512C2 the additional check
// pseudo code - not fully integrated/tested
t.Run("forece-delete-does-not-fail-if-not-empty", func(t *testing.T) {
ts := newTestServer(t, withoutInitialBuckets())
defer ts.Close()
svc := ts.s3Client()
ts.backendCreateBucket("test")
ts.backendPutString("test", "test", nil, "test")
ts.OKAll(svc.ForceDeleteBucket(&s3.DeleteBucketInput{
Bucket: aws.String("test"),
}))
})
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.
Awesome work!
Quality Gate failedFailed conditions |
I think I have noticed some error/stdout messages that 'read wrong'. The code is good. will update over the weekend |
Hi @casibbald sorry, I did not read your last comment properly! But let's just roll forward and integrate the changed error/stdout messages. |
Reverts #4325 Reverting, now that the following [PR](johannesboyne/gofakes3#100) has made it into Goflakes3