Repository navigation
[Expense tests] Verify the expected 404 in the Expense Users API negative test - #12773
Draft
Prangshuman Das (t-prda) wants to merge 13 commits into
Draft
Prangshuman Das (t-prda) wants to merge 13 commits into
Prangshuman Das (t-prda) wants to merge 13 commits into
Conversation
Prangshuman Das (t-prda)
changed the base branch from
main
to
features/646383-stack-d8-apiv1-reliability
October 13, 2026 15:39
Prangshuman Das (t-prda)
force-pushed
the
features/646383-stack-d8-apiv1-reliability
branch
from
October 14, 2026 09:27
45a2ff0 to
b5c8253
Compare
Prangshuman Das (t-prda)
force-pushed
the
bugs/654047-expense-users-404-assert
branch
from
October 14, 2026 09:29
676b299 to
c265049
Compare
Prangshuman Das (t-prda)
force-pushed
the
features/646383-stack-d8-apiv1-reliability
branch
from
October 14, 2026 09:48
b5c8253 to
89bbf4c
Compare
Prangshuman Das (t-prda)
force-pushed
the
bugs/654047-expense-users-404-assert
branch
from
October 14, 2026 09:48
c265049 to
c700562
Compare
Prangshuman Das (t-prda)
force-pushed
the
features/646383-stack-d8-apiv1-reliability
branch
from
October 14, 2026 10:30
89bbf4c to
5a94dbb
Compare
Prangshuman Das (t-prda)
force-pushed
the
bugs/654047-expense-users-404-assert
branch
from
October 14, 2026 10:30
c700562 to
e39ba31
Compare
Prangshuman Das (t-prda)
force-pushed
the
features/646383-stack-d8-apiv1-reliability
branch
from
October 14, 2026 10:49
5a94dbb to
647f910
Compare
Prangshuman Das (t-prda)
force-pushed
the
bugs/654047-expense-users-404-assert
branch
from
October 14, 2026 10:49
e39ba31 to
dd27fb5
Compare
Prangshuman Das (t-prda)
changed the base branch from
features/646383-stack-d8-apiv1-reliability
to
main
October 14, 2026 11:04
Prangshuman Das (t-prda)
changed the base branch from
features/646383-stack-d8-apiv1-reliability
to
main
October 14, 2026 14:06
Prangshuman Das (t-prda)
changed the base branch from
main
to
features/646383-stack-d8-apiv1-reliability
October 14, 2026 14:18
Address review feedback on the API test authentication provider: - Create the web service key in the caller's session and commit it, instead of in a background session. API tests commit their fixtures before calling the API, so the key commit adds no new transaction boundary. Removes codeunit 131025 "API Test Web Service Key". - Create keys without an expiry. Missing or expired keys are still replaced. - Remove TransactionModel attributes from the provider tests; the codeunit already runs with test isolation disabled. - Verify provider tests through the HTTP response and the key expiry date instead of reading the key as text. AB#646383 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3952f078-a881-4da8-ad96-13b727e48a91
Create missing VAT posting setup for item, item charge, resource and G/L account lines in API document fixtures and re-enable the affected line and item variant tests. AB#646383 AB#653393 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3952f078-a881-4da8-ad96-13b727e48a91
Create a reason code when none exists so cancel actions succeed and re-enable the affected invoice and credit memo tests. AB#646383 AB#653393 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3952f078-a881-4da8-ad96-13b727e48a91
Set dates before vendor defaults apply, use the payment-terms discount library and accept localized payment lines, then re-enable the payment discount test. AB#646383 AB#653393 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3952f078-a881-4da8-ad96-13b727e48a91
Align quote dates with the work date before converting to an order and re-enable the make-order tests. AB#646383 AB#653393 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3952f078-a881-4da8-ad96-13b727e48a91
Give the vendor payments batch a number series when it has none and re-enable the vendor payment and apply vendor entry tests. AB#646383 AB#653393 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3952f078-a881-4da8-ad96-13b727e48a91
Skip localized header fields that only exist in some countries when comparing page and API documents and re-enable the through-page-and-API tests. AB#646383 AB#653393 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3952f078-a881-4da8-ad96-13b727e48a91
Select the purchase return shipment report for return shipment PDF documents, run the PDF document codeunits without test isolation and re-enable their TestExpandPdfDocument tests. AB#646383 AB#653393 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3952f078-a881-4da8-ad96-13b727e48a91
Find created lines by unique description, refresh polled configuration packages, fix assertion order and journal template handling, and re-enable the affected APIV1 tests. AB#646383 AB#653393 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3952f078-a881-4da8-ad96-13b727e48a91
The negative scenario used asserterror without checking the error, so any failure (401, 500, timeout, unrelated AL error) made it pass. Assert that the request failed with response code 404. Fixes AB#654047 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3952f078-a881-4da8-ad96-13b727e48a91
Prangshuman Das (t-prda)
force-pushed
the
bugs/654047-expense-users-404-assert
branch
from
October 15, 2026 09:02
880586e to
faf666e
Compare
Prangshuman Das (t-prda)
changed the base branch from
features/646383-stack-d8-apiv1-reliability
to
main
October 15, 2026 09:20
Prangshuman Das (t-prda)
changed the base branch from
main
to
features/646383-stack-d8-apiv1-reliability
October 15, 2026 09:37
Prangshuman Das (t-prda)
force-pushed
the
features/646383-stack-d8-apiv1-reliability
branch
from
October 15, 2026 12:56
46994a0 to
de737ec
Compare
Contributor
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the API test stack (#12697), from review feedback on #12675.
Expense Users API Testusedasserterroron the unlinked-user GET without checking the error, so any failure (401, 500, timeout, unrelated AL error) let the negative test pass. It now assertsResponse code is 404. That matches the library's failed-request message for a 404, but not its unexpected-code message for other statuses.Stacked on #12684 (D8), where the Expense Agent API tests are re-enabled, so CI executes the test. Retarget to
mainonce the stack merges.Fixes AB#654047