You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(file_processors): send the test id on raw process_file requests
The four file-processor integration tests that upload a file started
failing under the recording harness with 400 "Test ID is required for
file ID allocation".
These tests call the endpoint with bare requests.post rather than the OGX
client, so nothing injects the provider-data header the recorder reads
the test id from. That did not matter before: a direct upload was handed
straight to the processor and no file record was ever created. Staging
the upload into the Files API means an ID now gets allocated per request,
and in record/replay mode allocation is deterministic and refuses to run
without a test id.
Adds a test_context_headers fixture following the same idiom as
tests/integration/files/test_files.py, and passes it on the four upload
requests. Outside record/replay mode get_test_context() is empty and the
fixture sends nothing, so the docling workflow is unaffected.
Signed-off-by: Charlie Doern <cdoern@redhat.com>
0 commit comments