84c33df2
test: build the fixture config and the keyset with ecoretest
The hand-built ini in web_test.go, the random fernet key in authn's TestMain and the same seeding copied into the git-hook test are one call to ecoretest now. The keys are fixed rather than generated on purpose: they secure nothing inside a test process, and a constant keyset is what lets two packages of this service initialise without the second rotating what the first sealed with. The synthetic instance runs in production mode, so the environment banner is off in tests unless one asks for it.
Eugene Blikh <bigbes@gmail.com> — 2026-08-08 19:49:28 UTC
Commit 84c33df2173045ab20c01e6f9db98ecb5472d8a4 —
view raw patch
Parent(s):
0af9ccda
| File | Status | + | − |
|---|---|---|---|
authn/authn_test.go
|
M | +13 | -24 |
cmd/dolt-git-hook/main_test.go
|
M | +6 | -20 |
web/web_test.go
|
M | +5 | -20 |