target-revenue/tests
tegwick de308f8947 Complete WP-0015: forgejo_hubs migration + closeout (T05/T07)
migrations/0007_forgejo_hubs.sql: table forgejo_hubs, auto-populated
via a BEFORE INSERT trigger on phase_manifests that reads repo_hub/
repo_hub_uri straight out of the manifest JSONB (no top-level columns
needed). ON CONFLICT DO NOTHING -- a hub already seen is left alone;
correcting a URI is a SECURITY DEFINER governance action
(correct_forgejo_hub_uri), not a plain UPDATE, matching every other
governance-action pattern in this project. Thin Python wrappers added
to registry.py.

tests/test_forgejo_hubs.py (6 Docker-gated tests) and
tests/test_reference_docs.py (13 tests, no Docker needed -- smoke-tests
every real specs/policies/specs/profiles/ file, not just the two
exercised incidentally by T03's Control Plane tests).

All seven WP-0015 tasks done; workplan marked finished. Final suite:
94 passing offline, 183 passing under the service extras venv. No
stray Docker containers left running.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-03 23:57:46 +02:00
..
fixtures Implement TREV-WP-0002 Stage 0 foundation: schemas, pure fold, golden Phase 2026-07-28 18:47:29 +02:00
conftest.py Implement TREV-WP-0002 Stage 0 foundation: schemas, pure fold, golden Phase 2026-07-28 18:47:29 +02:00
test_attestation.py Implement hosted Conversion Attestation publication (WP-0006-T06) 2026-07-29 21:50:02 +02:00
test_breach_record.py Implement hosted Breach/Compliance Record publication (WP-0006-T09) 2026-07-29 22:23:41 +02:00
test_control_plane.py Implement Control Plane backend: rights enforcement + audit log (WP-0009-T03) 2026-07-30 15:08:59 +02:00
test_control_plane_app.py Implement WP-0015-T03: Control Plane reference-rendering routes 2026-08-03 23:45:59 +02:00
test_conversion.py Implement TREV-WP-0002 Stage 0 foundation: schemas, pure fold, golden Phase 2026-07-28 18:47:29 +02:00
test_effort_calculator.py Apply Development Effort Calculator to real pilot candidates (WP-0010-T03) 2026-07-30 13:29:06 +02:00
test_extension_conformance.py Advance WP-0007: degeneration research, profile catalog, canonicalization checklist 2026-07-29 22:31:19 +02:00
test_forgejo_hubs.py Complete WP-0015: forgejo_hubs migration + closeout (T05/T07) 2026-08-03 23:57:46 +02:00
test_hosted_conformance.py Extend WP-0006 auth for per-human sub-credentials (WP-0009-T02) 2026-07-30 14:26:33 +02:00
test_ledger_fold.py Merge spec/ into specs/: one specs directory for the whole repo 2026-07-29 10:22:14 +02:00
test_ledger_hosting.py Extend WP-0006 auth for per-human sub-credentials (WP-0009-T02) 2026-07-30 14:26:33 +02:00
test_licensor_credentials.py Extend WP-0006 auth for per-human sub-credentials (WP-0009-T02) 2026-07-30 14:26:33 +02:00
test_manifest_validation.py Implement WP-0015-T01/T04/T06: Phase provenance schema + ledger UI 2026-08-03 20:43:30 +02:00
test_metrics.py Implement public metrics service (WP-0006-T05) 2026-07-29 21:42:52 +02:00
test_onboarding_hosted.py Extend WP-0006 auth for per-human sub-credentials (WP-0009-T02) 2026-07-30 14:26:33 +02:00
test_pilot_candidate_manifests.py Implement WP-0015-T01/T04/T06: Phase provenance schema + ledger UI 2026-08-03 20:43:30 +02:00
test_reference_docs.py Complete WP-0015: forgejo_hubs migration + closeout (T05/T07) 2026-08-03 23:57:46 +02:00
test_registry_hosting.py Extend WP-0006 auth for per-human sub-credentials (WP-0009-T02) 2026-07-30 14:26:33 +02:00
test_trf_onboard.py Define and implement multi-repo onboarding mechanism (WP-0006-T07) 2026-07-29 22:00:34 +02:00