[PR #1183] [MERGED] examples: add example with gsutil #1267

Closed
opened 2026-03-03 12:33:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/1183
Author: @fsouza
Created: 5/27/2023
Status: Merged
Merged: 5/27/2023
Merged by: @fsouza

Base: mainHead: add-gsutil-example


📝 Commits (2)

  • b6db6fc examples: add example with gsutil
  • d1073d0 upload: use a regexp for handling gsutil special case

📊 Changes

7 files changed (+162 additions, -12 deletions)

View changed files

📝 .github/workflows/main.yml (+3 -0)
ci/run-gsutil-example.sh (+12 -0)
examples/gsutil/gsutil-example.sh (+23 -0)
examples/gsutil/hello.txt (+1 -0)
examples/gsutil/image.png (+0 -0)
📝 fakestorage/upload.go (+21 -12)
📝 fakestorage/upload_test.go (+102 -0)

📄 Description

Hoping to reproduce #217. Still need to improve the situation with examples vs integration tests (see #1168).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fsouza/fake-gcs-server/pull/1183 **Author:** [@fsouza](https://github.com/fsouza) **Created:** 5/27/2023 **Status:** ✅ Merged **Merged:** 5/27/2023 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `main` ← **Head:** `add-gsutil-example` --- ### 📝 Commits (2) - [`b6db6fc`](https://github.com/fsouza/fake-gcs-server/commit/b6db6fcd0739404cec7429fa23db19b078e51ba3) examples: add example with gsutil - [`d1073d0`](https://github.com/fsouza/fake-gcs-server/commit/d1073d0dc0fba5140101b5fcf2ddc5abcdf623f7) upload: use a regexp for handling gsutil special case ### 📊 Changes **7 files changed** (+162 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/main.yml` (+3 -0) ➕ `ci/run-gsutil-example.sh` (+12 -0) ➕ `examples/gsutil/gsutil-example.sh` (+23 -0) ➕ `examples/gsutil/hello.txt` (+1 -0) ➕ `examples/gsutil/image.png` (+0 -0) 📝 `fakestorage/upload.go` (+21 -12) 📝 `fakestorage/upload_test.go` (+102 -0) </details> ### 📄 Description Hoping to reproduce #217. Still need to improve the situation with examples vs integration tests (see #1168). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:33:49 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#1267
No description provided.