secubox-deb/tests
CyberMind-FR a0e9ba8beb test(metablog): Smoke test for 3-site Gitea ingest (ref #94)
fix(metablog-ingest-site): Handle .git repos with unborn branch (no commits):
- Use git rev-parse --verify HEAD (exits non-zero on unborn branch) instead of
  rev-parse HEAD (which returns "HEAD" string even with no commits)
- Add fall-through path: .git exists + no commits → git symbolic-ref HEAD
  refs/heads/main + commit + push (same as fresh-init path)

test: Add tests/scripts/test-metablog-ingest.sh smoke test:
- Step 1: dry-run --limit 3 verifies report total=3
- Step 2: live --limit 3 accepts any ok+skip combo >= 3
- Step 3: idempotent re-run asserts all 3 skip-already-current
- Step 4: git ls-remote via MOCHAbin SSH verifies remote HEAD exists
- Step 5: clone+diff via MOCHAbin SSH (diff --exclude=.git) verifies
  clone == source

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 15:10:06 +02:00
..
integration WebUI Obfuscation - admin.HOSTNAME.secubox.in Only (#96) 2026-05-12 14:07:11 +02:00
scripts test(metablog): Smoke test for 3-site Gitea ingest (ref #94) 2026-05-12 15:10:06 +02:00
test_license_headers.py fix(license): tighten detect_existing + missing-file = repo-wide (ref #81) 2026-05-12 11:39:57 +02:00
test_opad_schema.py fix(opad): use model_json_schema() for Pydantic v2 2026-05-12 09:15:09 +02:00
test_ssl_status.py feat(metrics): Add get_ssl_status() for certificate health 2026-05-12 10:57:31 +02:00