Skip to content

SPP1-189: Make TestS3ChunkStore more flexible#391

Open
ludwigschwardt wants to merge 1 commit intomasterfrom
spp1-189-pass-store-parameters-to-test-class
Open

SPP1-189: Make TestS3ChunkStore more flexible#391
ludwigschwardt wants to merge 1 commit intomasterfrom
spp1-189-pass-store-parameters-to-test-class

Conversation

@ludwigschwardt
Copy link
Contributor

It is convenient to start a local S3 server using TestS3ChunkStore. I use this to benchmark Zarr, for example. It would be nice to open buckets with anonymous read support as they are on the real archive. This enables the Zarr HTTP filesystem backend (instead of s3fs), a lighter interface with simple support for our bearer tokens.

The public_read parameter to S3ChunkStore does this, and is passed into TestS3ChunkStore.prepare_store_args within the setup_class call. Make it possible to add more parameters this way, by adding **kwargs to setup_class.

It is convenient to start a local S3 server using `TestS3ChunkStore`.
I use this to benchmark Zarr, for example. It would be nice to open
buckets with anonymous read support as they are on the real archive.
This enables the Zarr HTTP filesystem backend (instead of s3fs), a
lighter interface with simple support for our bearer tokens.

The `public_read` parameter to `S3ChunkStore` does this, and is passed
into `TestS3ChunkStore.prepare_store_args` within the `setup_class` call.
Make it possible to add more parameters this way, by adding `**kwargs`
to `setup_class`.
@ludwigschwardt ludwigschwardt requested a review from SihlanguI March 2, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant