[object Object]

← back to AsSeenInMovies

smoke: assert /api/version git !== 'unknown' (catches missing git on PATH at boot)

c79cbbc3cf00bffa3fbaed4f7db982ae31f71d08 · 2026-05-13 10:25:31 -0700 · SteveStudio2

Files touched

Diff

commit c79cbbc3cf00bffa3fbaed4f7db982ae31f71d08
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed May 13 10:25:31 2026 -0700

    smoke: assert /api/version git !== 'unknown' (catches missing git on PATH at boot)
---
 test/smoke.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/smoke.js b/test/smoke.js
index 2f22a89..7c66879 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -122,6 +122,7 @@ function check(name, cond, hint = '') {
   check('api/version: 200',        r.status === 200);
   check('api/version: name',       /"name":"asseeninmovies"/.test(r.body));
   check('api/version: git sha',    /"git":"[a-f0-9]{4,}/.test(r.body));
+  check('api/version: git resolved', !/"git":"unknown"/.test(r.body));
   check('api/version: node',       /"node":"v\d+/.test(r.body));
   check('api/version: no-store',   (r.headers['cache-control'] || '').includes('no-store'));
 

← db4fdf7 smoke: assert /api/version Cache-Control no-store  ·  back to AsSeenInMovies  ·  smoke: assert Vary: Accept-Encoding (cache-safety regression 211c824 →