[PR #1079] [MERGED] Add Reseed Endpoint #1175

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

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/1079
Author: @RachitSharma2001
Created: 2/19/2023
Status: Merged
Merged: 3/21/2023
Merged by: @fsouza

Base: mainHead: reseed


📝 Commits (1)

📊 Changes

2 files changed (+293 additions, -0 deletions)

View changed files

📝 fakestorage/server.go (+85 -0)
📝 fakestorage/server_test.go (+208 -0)

📄 Description

Addresses #1033

This adds a reseed endpoint at _internal/reseed

To reseed, the /data folder is reread fully and the server's backend in reinitialized. I fix the folder to be /data since this is also fixed in internal/config.go here.

I also added a test on the helper function that the reseed endpoint uses.

Please let me know if there are any changes or things to add.


🔄 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/1079 **Author:** [@RachitSharma2001](https://github.com/RachitSharma2001) **Created:** 2/19/2023 **Status:** ✅ Merged **Merged:** 3/21/2023 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `main` ← **Head:** `reseed` --- ### 📝 Commits (1) - [`9291da9`](https://github.com/fsouza/fake-gcs-server/commit/9291da90d02cb29fecd393fe7ba20b8581a03bd0) Add Reseed Endpoint ### 📊 Changes **2 files changed** (+293 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `fakestorage/server.go` (+85 -0) 📝 `fakestorage/server_test.go` (+208 -0) </details> ### 📄 Description Addresses #1033 This adds a reseed endpoint at `_internal/reseed` To reseed, the `/data` folder is reread fully and the server's backend in reinitialized. I fix the folder to be `/data` since this is also fixed in `internal/config.go` [here](https://github.com/fsouza/fake-gcs-server/blob/main/internal/config/config.go#L68). I also added a test on the helper function that the reseed endpoint uses. Please let me know if there are any changes or things to add. --- <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:24 +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#1175
No description provided.