Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
The automatically triggered probe workflow is awaiting action: https://github.com/aldevtools/BusinessCentral.AL.Language.Tests/actions/runs/43853337364. A maintainer needs to approve it before its BC results can be pinned. |
Preserve header state across copies and refuse unmeasured shapes. Record the local BC evidence until the probe is pinned. Refs aldevtools/BusinessCentral.AL.Language.Tests#1424 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Test coverage omits key stream/header-state combinations, direct request-content stream writes, and empty-name checks on request/response content headers, leaving receiver-specific regressions insufficiently guarded against.
3 open issues
What changed in this PR
This PR extends the AL HTTP behavioral tests to probe empty header-name lookups and stream writes after content-header changes.
Changes:
- Adds
HttpHeaders.Contains('')error assertions across several receivers and secret-value scenarios. - Tests stream-write body and Content-Type outcomes after header removal, re-addition, clearing, and content resets.
- Covers content copies, request-assigned copies, and direct response-content writes.
| File | Description |
|---|---|
tests/al-language/http/HttpHeaders.al |
Adds empty-name lookup probes and shared error expectations. |
tests/al-language/http/content/HttpContent.al |
Adds stream-write scenarios for header changes, copies, and response content. |
Review effort: Balanced
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
I review the probe first. The CI run on BC 27.5, 28.5 and 29.0 waits for my approval to run. The automated review comments are suggestions; in my review I will say which of them I need for the runtime change in runner#7870. |
|
Thanks for the probe. Your new tests passed on all three legs. The red legs come from a test that this pull request does not change. Failing test:
Microsoft republished BC 27.5 and 28.5 on .NET 10. Corpus CI takes the newest build, and on those builds Please merge Generated by an AI agent (Claude) working for Stefan Maron. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

What this PR adds or changes
Probe empty header-name lookups and stream writes after content-header changes, including copies and response content.
Linked issue
n/a
Related runtime pull request: aldevtools/BusinessCentral.AL.Runner#7870.
Test area(s)
httpandhttp/content.Local validation of the added neutral probes:
The isolated app was compiled with
Compile-AppInBcContaineragainst each version and run with:Run-TestsInBcContainer -containerName $container -credential $cred -companyName $company -extensionId $appId -testCodeunitRange '72020|72022' -testCodeunit '*' -testFunction 'Http*' -XUnitResultFileName $resultFile -culture en-US -interactionTimeout ([timespan]::FromMinutes(10)) -detailed -returnTrueIfAllPassed— passed on all three.The pull request's BC 27.5, 28.5 and 29.0 CI matrix is awaiting maintainer approval; BC 29.1 is not a substitute for its 29.0 result.
Checklist
Initialize()is the first line of every[Test]procedureInitialize()callsDeleteAll()on every table used in the codeunit_fixtures/objects used; each local object has a// local object: <reason>line<area>/<topic>/(no writer id, issue number or batch name in a folder name)tests/rename-map.tsvType_Method_Scenario_Outcome)#if BC28PLUS(or equivalent) with an explanatory commentThe checklist applies to the added tests; no persistent tables, local objects, new files, removals, or new version gates were introduced.