nix: add tests for channel tarballs and gc pinning

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ifb9d95d5206b7b1cf23fa3d5aaf9d0db6a6a6964
This commit is contained in:
raf 2026-02-18 11:43:05 +03:00
commit 9dde82d46f
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
6 changed files with 540 additions and 5 deletions

View file

@ -46,7 +46,7 @@ pkgs.testers.nixosTest {
)
ro_header = f"-H 'Authorization: Bearer {ro_token}'"
# Structured logging ----
# Structured logging
with subtest("Server produces structured log output"):
# The server should log via tracing with the configured format
result = machine.succeed("journalctl -u fc-server --no-pager -n 50 2>&1")
@ -54,7 +54,7 @@ pkgs.testers.nixosTest {
assert "INFO" in result or "info" in result, \
"Expected structured log lines with INFO level in journalctl output"
# Static CSS serving ----
# Static CSS serving
with subtest("Static CSS endpoint returns 200 with correct content type"):
code = machine.succeed(
"curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:3000/static/style.css"