35 lines
710 B
JSON
35 lines
710 B
JSON
|
|
{
|
||
|
|
"id": "config_extraction_timeout",
|
||
|
|
"description": "Tests that extraction_timeout_secs config field is accepted and does not affect fast extractions",
|
||
|
|
"tags": [
|
||
|
|
"contract",
|
||
|
|
"config",
|
||
|
|
"timeout"
|
||
|
|
],
|
||
|
|
"call": "extract_file_sync",
|
||
|
|
"input": {
|
||
|
|
"path": "pdf/fake_memo.pdf",
|
||
|
|
"config": {
|
||
|
|
"extraction_timeout_secs": 300
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"assertions": [
|
||
|
|
{
|
||
|
|
"type": "equals",
|
||
|
|
"field": "mime_type",
|
||
|
|
"value": "application/pdf"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "min_length",
|
||
|
|
"field": "content",
|
||
|
|
"value": 10
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"skip": {
|
||
|
|
"languages": [
|
||
|
|
"wasm"
|
||
|
|
],
|
||
|
|
"reason": "WASM cannot access filesystem; use extractBytes with file content instead"
|
||
|
|
}
|
||
|
|
}
|