Testing¶
crdb-dump is tested at three levels. Requires Python 3.10+.
Unit tests (no database)¶
Integration tests (need a reachable CockroachDB)¶
export CRDB_URL="cockroachdb://root@localhost:26257/defaultdb?sslmode=disable"
pytest -m integration
Integration tests cover non-public schema, VECTOR, and BYTES round-trips.
End-to-end¶
The script auto-detects a single- or multi-region cluster, exercises export →
verify → restore → resume, and an S3 (MinIO) round-trip. It resolves the CLI from
the repo .venv automatically.