#12694 Allow API tests to issue local HTTP requests
API tests can now issue local HTTP requests by declaring explicit test HTTP request policies, and OCR authentication header handling was corrected to avoid validation errors.
- 167files
- 3AL files
- 2objects
Pull request · merged into main (BC30) on 2026-10-14 by onbuyuka · 167 files (+375 -582), 3 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Adds AllowAllOutboundRequests policy annotation to 153 API test codeunits
- Fixes OCR service authentication by using TryAddWithoutValidation for x-rs-key header
- Resolves test failures caused by default BlockOutboundRequests policy
- Preserves legacy HTTP request manager wire behavior for OCR mock service
- No public API or schema changes
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 1297 “Http Web Request Mgt.”, Base Application: modified
- Codeunit 1294 “OCR Service Mgt.”, Base Application: modified
src/Layers/APAC/BaseApp/eServices/EDocument/OCRServiceMgt.Codeunit.al: modified, not in the BC30 snapshot
Context
- Work items: AB#653825
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Mock outbound HttpClient web service calls during testing — possibly related: Explains mocking HttpClient calls during testing, directly relevant to allowing local HTTP requests in API tests (model-linked)
- Outgoing Web Service Request Trace — possibly related: Documents outgoing web service request telemetry, applicable to HTTP request handling in test scenarios (model-linked)
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).