Repair and re-enable Expense Agent permission and posted-history tests - #11654
Draft
Prangshuman Das (t-prda) wants to merge 6 commits into
Draft
Prangshuman Das (t-prda) wants to merge 6 commits into
Prangshuman Das (t-prda) wants to merge 6 commits into
Conversation
Consolidate role assertion and real posted-history fixture repairs on main; re-enable fourteen Expense Agent tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 988fb581-008c-4e0d-99c1-285cd45d49e7
…ests Re-enable six Travel Requests API cases with fresh cross-session persistence checks. Keep HTTP integration coverage separate from in-process Spend Request tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 988fb581-008c-4e0d-99c1-285cd45d49e7
Retain NAV API enablement separately and omit added feature tags as requested. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 988fb581-008c-4e0d-99c1-285cd45d49e7
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 988fb581-008c-4e0d-99c1-285cd45d49e7
RU UnitTest databases need a complete posting setup before Library - ERM Country Data updates its accounts. Reuse standard library creators without changing test coverage or production behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 988fb581-008c-4e0d-99c1-285cd45d49e7
This was referenced Sep 21, 2026
…ests Repair missing account references on the Normal VAT template used by country initialization. Preserve valid accounts and all test assertions; avoid inheriting dangling references from prior fixtures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 988fb581-008c-4e0d-99c1-285cd45d49e7
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.
What and why
Consolidate the Expense Agent test repairs on current
main, following merged #11333.Related: AB#650245, AB#650277, AB#625894. NAV test-enablement/uptake also tracks AB#650246 and AB#650247.
This supersedes the overlapping repair work in drafts #11451 and #11452. Their other already-upstream changes are not replayed. The older drafts remain open until their owners reconcile/close them after this work is merged.
Validation
git diff --checkpassed; read-only review found no significant issue.0c994435e3ee038dbaf66822f8a2791b1aa3f43a.Get-AppsToInstallby removing the blanket runner filter introduced inf09e1491f2adacca7a851a12587966daf91d993d.Whole-app NAV test exclusion and installation/execution validation: AB#650370. The scoped bugs 650245, 650246, 650247, 650277 and 650370 are Active while verification is pending.
CI iteration: 79ef58 (superseded by RU fixture correction)
Actual W1 Default JUnit artifact 10646077590 from run35596801127 records 148338 20/20 passed and 148339 74/74 passed, zero errors/skips, including all14 re-enabled methods. DE Default JUnit also records20/20+74/74.
RU Default job106353051317 failed: 14833820/20passed, but all74 Spend Request tests failed during Initialize because PrepareNormalGenPostingSetup could not find a fully populated General Posting Setup in the UnitTest database. This is fixture initialization, not74 different product failures.
Commit0ed0d44f92 creates a complete posting setup using existing Library - ERM helpers before the country-specific setup. New-head validation is pending; the prior-head W1/DE passes are not a claim that this new commit has passed. No tests were disabled for this failure. Local and NAV buddy execution caveats above remain.
CI iteration: 0ed0d44 (superseded by CH VAT fixture correction)
Actual JUnit from run35616107333 attempt2 verifies W1 and RU each passed all20 permission tests and74 Spend Request tests, zero failures/errors/skips. W1 artifact10658609682; RU artifact10658544297. This confirms the RU posting-setup correction.
CH Default job106447478820 failed: permissions20/20passed; all74 Spend Request cases stopped in country VAT initialization because the selected Normal VAT template referenced a nonexistent Sales VAT Account. Artifact10659053532 and the job stack identify Library - ERM Country Data.CreateVATPostingSetup.
Commit bd80ea3 initializes the VAT template before country setup, creating replacement Sales/Purchase VAT accounts only when the referenced account is missing. Valid account references and all assertions remain unchanged; no test is disabled. Fresh validation of W1, RU and CH on this new head is pending. Older-head pass evidence is not a claim that the new head passed.