]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
test(ocpp): add E03 IdToken-First pre-authorization transaction tests
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 13:47:22 +0000 (14:47 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 14:00:21 +0000 (15:00 +0100)
commit60bf8d9306af169c6c48ff83676bc30fd6f0bfc5
tree68f95c2b6b913a72d638419c129f0702fe2cf2b8
parentf120a651765628000012a369b81d8827e1053ff1
test(ocpp): add E03 IdToken-First pre-authorization transaction tests

E03 IdToken-First Pre-Authorization Flow (16 tests):
- E03.FR.01: IdToken inclusion in TransactionEvent (once per transaction)
- E03.FR.05/06: EVConnectionTimeOut handling (authorization cancellation)
- E03.FR.07/08: Sequence number continuity and unique transaction IDs
- E03.FR.13: Authorized trigger reason for IdToken-first start
- Authorization status handling (Deauthorized, StopAuthorized)
- Full IdToken-first lifecycle (authorize -> cable -> charge -> end)
- Differentiation from E02 Cable-First flow by trigger reason
- Multiple connector independence verification

Tests verify the IdToken-first flow where user presents their ID token
BEFORE connecting the cable, as opposed to E02 Cable-First where the
cable is connected first.

All 1131 tests pass.
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent-IdTokenFirst.test.ts [new file with mode: 0644]