mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[PR #481] [MERGED] adds support for deleting buckets #647
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#647
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/481
Author: @joerodriguez
Created: 4/19/2021
Status: ✅ Merged
Merged: 4/24/2021
Merged by: @fsouza
Base:
main← Head:delete-bucket-support📝 Commits (1)
1e39dd0adds support for deleting buckets📊 Changes
7 files changed (+110 additions, -11 deletions)
View changed files
📝
fakestorage/bucket.go(+17 -0)📝
fakestorage/bucket_test.go(+44 -0)📝
fakestorage/server.go(+1 -0)📝
internal/backend/backend_test.go(+9 -11)📝
internal/backend/fs.go(+15 -0)📝
internal/backend/memory.go(+16 -0)📝
internal/backend/storage.go(+8 -0)📄 Description
This PR adds support for deleting buckets with the gcs client. I do not know the full set of preconditions for deleting a bucket, but GCS does require the bucket to be empty, which is respected here.
This fixes https://github.com/fsouza/fake-gcs-server/issues/214
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.