mirror of
https://github.com/hanzoai/docdb.git
synced 2026-10-30 18:39:39 +00:00
Two failures, neither about the code under test. NoAccess built its unwritable directory out of "/", which is only unwritable when you are not root. CI runs as root in a container, the write succeeds and the expected error never arrives. It now makes a directory it has genuinely been denied (mode 0500) and skips as root, where file permissions deny nothing. Checked that it still catches a NewProviderDir that swallows the error, so it did not become decoration. SpecRoutes listed one route per spec operation, but Fiber answers HEAD on everything registered with Get — so /openapi.json, the spec's only GET, arrives as a pair and the router looked wrong when it was not. Expecting the pair for every GET rather than special-casing this one path, so a GET added to the spec later does not fail this again. Full suite green under CI's own command: go generate ./build/version, then go test -short -tags=docdb_dev -count=1 ./... Co-authored-by: Hanzo Dev <[email protected]>