test: unit tests for licensing, LAN IP, TLS identity and rediscovery

- local_backend/tests (pytest, 48 tests, <1s): license token verify/evaluate
  (tamper, other site/key, offline, grace, workday deferral, clock, transition),
  netinfo detection on fake sysfs (VPN/tunnel/WiFi/link-local), LAN-IP
  resolver priority + mismatch + staleness + override validation, TLS
  identity create/restart/renew-same-key/foreign cert (+ openssl pin check)
- waiter_pwa/tests (node --test, 7 tests): subnet candidates, scan picks only
  this venue, early stop, progress
- requirements-dev.txt (pytest), npm test, .pytest_cache ignored

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-28 23:33:16 +03:00
co-authored by Claude Opus 5.5
parent ffca0ace43
commit f00c99fd36
8 changed files with 368 additions and 1 deletions
+2 -1
View File
@@ -10,7 +10,8 @@
"preview": "vite preview",
"build:native": "vite build --mode native && cap sync android",
"apk:debug": "npm run build:native && node scripts/build-apk.mjs debug",
"apk:release": "npm run build:native && node scripts/build-apk.mjs release"
"apk:release": "npm run build:native && node scripts/build-apk.mjs release",
"test": "node --test \"tests/*.test.mjs\""
},
"dependencies": {
"@capacitor/android": "^8.5.2",