---
id: change/bcapps/12325
type: change
title: "#12325 [Expense tests] Re-enable reviewed APIs and consolidate Expense fixes"
summary: Expense Agent API tests are re-enabled. Eleven Expense API and helper paths move to shared authentication, 51 Expense API exclusions are removed, and nine non-API exclusions stay. Clean test codeunit execution is turned on, and 193 temporary API exclusions are added to the existing APIV1 and APIV2 manifests.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit travel request approval
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:02:14.709Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 3f357d6c93edab81eab2437909d8dab17637ba0d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12325
    title: "microsoft/BCApps#12325: [Expense tests] Re-enable reviewed APIs and consolidate Expense fixes"
    date: "2026-10-06"
    commit: 3f357d6c93edab81eab2437909d8dab17637ba0d
    t: null
    quote: Migrate the 11 reviewed Expense API/helper paths to shared authentication and remove exactly 51 existing Expense API exclusions.
links:
  learn: []
  objects:
    - object/codeunit/7133
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 12325
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12325
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-06T16:16:53Z"
author: t-prda
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Build: Automation"
  - ExpenseManagement
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: false
breaking: false
files:
  count: 21
  additions: 1405
  deletions: 375
  al: 1
apps:
  - ExpenseAgent
objects_touched:
  - key: codeunit/7133
    page: codeunit/7133
    type: codeunit
    id: 7133
    name: Travel Request Approval
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646383
  - 653119
systems:
  - development
quote: Migrate the 11 reviewed Expense API/helper paths to shared authentication and remove exactly 51 existing Expense API exclusions.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #12325 [Expense tests] Re-enable reviewed APIs and consolidate Expense fixes

> Expense Agent API tests are re-enabled. Eleven Expense API and helper paths move to shared authentication, 51 Expense API exclusions are removed, and nine non-API exclusions stay. Clean test codeunit execution is turned on, and 193 temporary API exclusions are added to the existing APIV1 and APIV2 manifests.

[Pull request](https://github.com/microsoft/BCApps/pull/12325) · merged into `main` (BC30) on 2026-10-06 by t-prda · 21 files (+1405 -375), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Migrated 11 Expense API and helper paths to shared authentication
- Removed 51 Expense API test exclusions; kept 9 non-API Expense exclusions
- Enabled the existing enableCleanTestCodeunitExecution setting using existing DisabledTests selectors
- Added 193 temporary method-specific exclusions to the existing APIV1 and APIV2 manifests, to be removed in a follow-up PR
- Consolidated test fixes for policy URL composition, response isolation, assigned-user filtering and denied-approval handling

## AL objects touched

- [Codeunit 7133 "Travel Request Approval"](../../objects/codeunit/7133.md), ExpenseAgent: modified

## Context

- Work items: AB#646383, AB#653119
- Labels: AL: Apps (W1), Build: Automation, ExpenseManagement, Team: Finance
- Systems: development
- From the description: "Migrate the 11 reviewed Expense API/helper paths to shared authentication and remove exactly 51 existing Expense API exclusions."

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).
