feat(examples): ship the §11 golden fixtures with byte-exact conformance
TDD step 8: three golden cases per the §11 format (manifest.json, fixture/, ingested-at.txt, expected-bundle/) — ingest-golden-file and ingest-golden-sql are the conformance MUSTs; ingest-golden-http documents and exercises the optional extension against mock payloads. The conformance test re-materializes each case into a fresh directory and compares byte for byte; offline and credential-free (the sql fixture is a committed database file, http never opens a socket). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QeqhJpYQyghASjiJo5EhGg
This commit is contained in:
parent
ab1fa4d999
commit
9dd86b1b18
19 changed files with 225 additions and 0 deletions
3
examples/ingest-golden-file/expected-bundle/index.md
Normal file
3
examples/ingest-golden-file/expected-bundle/index.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Golden file-source bundle: orders and products extracted from a CSV catalogue.
|
||||
- [Orders](ingest-orders.md)
|
||||
- [Products](ingest-products.md)
|
||||
15
examples/ingest-golden-file/expected-bundle/ingest-orders.md
Normal file
15
examples/ingest-golden-file/expected-bundle/ingest-orders.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
type: dataset
|
||||
title: Orders
|
||||
source_system: golden-catalogue
|
||||
source_query: orders.csv
|
||||
ingested_at: 2026-07-16T12:00:00Z
|
||||
ingest_manifest: manifest@37674ac20059e788
|
||||
generated: true
|
||||
---
|
||||
|
||||
| order_id | customer | total |
|
||||
| --- | --- | --- |
|
||||
| 1001 | Alice | 250.5 |
|
||||
| 1002 | Bob | 99.9 |
|
||||
| 1003 | Carol | 0.1 |
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
type: dataset
|
||||
title: Products
|
||||
source_system: golden-catalogue
|
||||
source_query: products.csv
|
||||
ingested_at: 2026-07-16T12:00:00Z
|
||||
ingest_manifest: manifest@37674ac20059e788
|
||||
generated: true
|
||||
---
|
||||
|
||||
| sku | name | note |
|
||||
| --- | --- | --- |
|
||||
| A-1 | Pipe\|Product | has\|pipe |
|
||||
| B-2 | Back\\slash | line1 line2 |
|
||||
| C-3 | Plain | |
|
||||
Loading…
Add table
Add a link
Reference in a new issue