mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-06-02 13:13:43 -04:00
Backend Integration
This runner executes isolated source-level integration tests for Zerobyte volume backends and repository backends inside a Docker container that shares the same runtime tooling as the main image.
What it verifies
For each scenario the runner will:
- Mount the configured volume backend into an isolated temp workspace.
- Read fixture files directly from the mounted filesystem.
- Verify mounted file ownership and permission bits.
- Run a restic backup directly against the configured repository backend.
- Inspect the created snapshot with
restic lsand verify snapshot metadata. - Restore the snapshot into an isolated temp directory.
- Verify restored content, ownership, and permission bits.
- Unmount and clean up local test artifacts.
Bootstrap a Debian target
This folder includes setup-target.sh, which connects to a VM host and configures:
- NFS export at
/srv/zerobyte-backend-integration/fixtures - Samba share
//<host>/zerobyte-backend-integration - WebDAV endpoint at
http://<host>/zerobyte-backend-integration - SFTP access for both fixture reads and a reusable restic repository
- A generated local keypair,
known_hosts, password files, and a ready-to-run config underartifacts/192.168.2.41/