Skip to main content

Crate rustfs_test_utils

Crate rustfs_test_utils 

Source
Expand description

Shared test bootstrap helpers for RustFS integration tests (backlog#1153 infra-1).

This crate is a dev-dependency only: it must never appear in any crate’s [dependencies]. It owns the ~50-line “build a real temp-disk ECStore” bootstrap that used to be copy-pasted (and drift) across the heal/iam/scanner integration tests.

Single-process integration scope only — multi-node / chaos harnesses are out of scope (backlog#1100).

Structs§

TestECStoreEnv
A real single-pool, single-set ECStore built over per-test temp-dir “disks”. Build one with TestECStoreEnv::builder.
TestECStoreEnvBuilder
Builder for TestECStoreEnv. Defaults reproduce the historical heal bootstrap: 4 disks, one pool, one set, bucket-metadata system initialized.

Functions§

init_tracing
Install the standard test tracing subscriber once per process (RUST_LOG-driven). Safe to call from every test; later calls are no-ops.