This commit is contained in:
34
fixtures/contract/config_extraction_timeout.json
Normal file
34
fixtures/contract/config_extraction_timeout.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user