Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Add support for Delete Multiple Objects #117

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

zinschj
Copy link

@zinschj zinschj commented Sep 23, 2015

Added support multi-object deletion per the S3 api as described at http://docs.aws.amazon.com/AmazonS3/latest/API/multiobjectdeleteapi.html

Pairing and others added 7 commits September 22, 2015 16:50
Add support for Delete Multiple Objects
When starting fakeS3, the buckets are not aware of the date stored in
the underlying filesystem.  This is problematic for ListObjects calls
—e.g. aws s3api list-objects --bucket mybucket.  By loading the objects
into the buckets on start of the fakes3 server, we overcome this issue.
Explicitly close files examined during the file_store initialization.
Load Filenames on Restart of Server / Add XML response for Delete_Objects.
@mkacherovich
Copy link
Collaborator

Hi,
I forked the project here https://github.com/SwirlNetworks/fake-s3 and made a couple of improvements, including one of the changes in your pull request - deep scanning of file store contents on startup.

I also added a feature that allows you to refresh in-memory file store object on every request, which makes Fake S3 suitable to use with automation tasks that need to reset intermittent state - such as erase the contents of the file store using rm -rf /fakes3-root

The fork builds as a separate gem swirl-fakes3. Feel free to use it or contribute.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants