33 lines
724 B
JSON
33 lines
724 B
JSON
|
|
{
|
||
|
|
"id": "smoke_pdf_basic",
|
||
|
|
"category": "smoke",
|
||
|
|
"description": "Smoke test: PDF with simple text extraction",
|
||
|
|
"tags": ["smoke", "pdf", "basic"],
|
||
|
|
"input": {
|
||
|
|
"path": "pdf/fake_memo.pdf",
|
||
|
|
"mime_type": "application/pdf",
|
||
|
|
"config": {}
|
||
|
|
},
|
||
|
|
"assertions": [
|
||
|
|
{
|
||
|
|
"type": "equals",
|
||
|
|
"field": "mime_type",
|
||
|
|
"value": "application/pdf"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "min_length",
|
||
|
|
"field": "content",
|
||
|
|
"value": 50
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "contains_any",
|
||
|
|
"field": "content",
|
||
|
|
"values": ["May 5, 2023", "To Whom it May Concern"]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"skip": {
|
||
|
|
"languages": ["wasm"],
|
||
|
|
"reason": "WASM cannot access filesystem; use extractBytes with file content instead"
|
||
|
|
}
|
||
|
|
}
|