Skip to main content

Module testing

Module testing 

Source
Available on crate feature testing only.
Expand description

An in-memory StorageProxyBackend for exercising the wire contract without a cloud.

InMemoryStorageProxyBackend wraps an object_store::memory::InMemory and authorizes exactly one securable + key-prefix, so the confused-deputy and read-only-scope tests have something concrete to be rejected against. Every handler path (ranged get_opts, conditional put_opts, streaming put_multipart) is supported by InMemory, so the full contract is testable here.

Structs§

InMemoryStorageProxyBackend
An in-memory backend authorizing a single securable and key prefix.

Functions§

prefixed
A PrefixStore-wrapping helper, mirroring how a real arm roots req.key under a securable prefix. Exposed for tests that want to assert prefix confinement explicitly.