test(ingest): http golden extraction, byte-deterministic (I6)
This commit is contained in:
parent
bbdcd62ae6
commit
24e73f47f6
9 changed files with 157 additions and 0 deletions
3
examples/ingest-golden-http/expected-bundle/index.md
Normal file
3
examples/ingest-golden-http/expected-bundle/index.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Golden extraction case: two HTTP extracts from a local mock endpoint (http source type).
|
||||
- [Service status](ingest-status.md)
|
||||
- [Ops report](ingest-report.md)
|
||||
15
examples/ingest-golden-http/expected-bundle/ingest-report.md
Normal file
15
examples/ingest-golden-http/expected-bundle/ingest-report.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
type: reference
|
||||
title: Ops report
|
||||
source_system: status-api
|
||||
source_query: report
|
||||
ingested_at: 2026-07-04T12:00:00Z
|
||||
ingest_manifest: manifest@8a8ae7a7a4d1cfc2
|
||||
generated: true
|
||||
---
|
||||
|
||||
```
|
||||
baseline ok
|
||||
pipe | and backslash \ kept verbatim
|
||||
end of report
|
||||
```
|
||||
13
examples/ingest-golden-http/expected-bundle/ingest-status.md
Normal file
13
examples/ingest-golden-http/expected-bundle/ingest-status.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
type: dataset
|
||||
title: Service status
|
||||
source_system: status-api
|
||||
source_query: status
|
||||
ingested_at: 2026-07-04T12:00:00Z
|
||||
ingest_manifest: manifest@8a8ae7a7a4d1cfc2
|
||||
generated: true
|
||||
---
|
||||
|
||||
```
|
||||
{"service": "billing", "state": "degraded | partial", "path": "c:\temp\cache"}
|
||||
```
|
||||
3
examples/ingest-golden-http/fixture/report
Normal file
3
examples/ingest-golden-http/fixture/report
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
baseline ok
|
||||
pipe | and backslash \ kept verbatim
|
||||
end of report
|
||||
1
examples/ingest-golden-http/fixture/status
Normal file
1
examples/ingest-golden-http/fixture/status
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"service": "billing", "state": "degraded | partial", "path": "c:\temp\cache"}
|
||||
1
examples/ingest-golden-http/ingested-at.txt
Normal file
1
examples/ingest-golden-http/ingested-at.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
2026-07-04T12:00:00Z
|
||||
21
examples/ingest-golden-http/manifest.json
Normal file
21
examples/ingest-golden-http/manifest.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"manifest_version": 1,
|
||||
"source": {"type": "http", "id": "status-api", "base_url": "https://api.example.test/v1", "credential_ref": null},
|
||||
"bundle_summary": "Golden extraction case: two HTTP extracts from a local mock endpoint (http source type).",
|
||||
"extractions": [
|
||||
{
|
||||
"id": "status",
|
||||
"title": "Service status",
|
||||
"query": "status",
|
||||
"okf_type": "dataset",
|
||||
"max_rows": 10
|
||||
},
|
||||
{
|
||||
"id": "report",
|
||||
"title": "Ops report",
|
||||
"query": "report",
|
||||
"okf_type": "reference",
|
||||
"max_rows": 10
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue