Commit graph

2 commits

Author SHA1 Message Date
vrubelroman
ffcc8f5806 test: add fstree helper to build, snapshot and diff directory trees
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 22:57:11 +03:00
vrubelroman
05da3c0d30 test: add in-process SSH/SFTP server and fault proxy (internal/testutil/sshtest)
Ports the analysts' testbed into a reusable package: Start(Options{Password,
AuthorizedKeys, HostKeys, NoExec, Chroot}), NewProxy with SetDelay/Freeze/
CutAfter/KillAll, IsolatedHome, GenKeys. Exec reports exit-status and
stderr; NoExec rejects exec like ForceCommand internal-sftp. All goroutines
stop on t.Cleanup (checked via runtime.NumGoroutine).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 22:56:05 +03:00