mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[PR #300] [MERGED] Add basic implementation of ifGenerationMatch precondition. #500
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#500
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/300
Author: @charleskorn
Created: 8/5/2020
Status: ✅ Merged
Merged: 8/26/2020
Merged by: @fsouza
Base:
main← Head:main📝 Commits (4)
3f67582Add basic implementation of ifGenerationMatch precondition.c3eee98Refactor tests.81679deSimplify test even further.8a7cd30Fix misuse of Fatalf().📊 Changes
2 files changed (+83 additions, -0 deletions)
View changed files
📝
fakestorage/upload.go(+24 -0)📝
fakestorage/upload_test.go(+59 -0)📄 Description
It only supports checking if the file does not exist, and does not support checking for a particular generation. In these unsupported cases, it will return a HTTP not implemented error to the client.
See #299.
Documentation: https://cloud.google.com/storage/docs/json_api/v1/objects/update#parameters
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.