]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
test(ocpp): add B02/B03 boot notification behavior and E02 Cable-First transaction...
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 13:32:04 +0000 (14:32 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 14:00:21 +0000 (15:00 +0100)
commitf120a651765628000012a369b81d8827e1053ff1
tree845f8d9a876bb5f8193fb6eced9bc185a2ee7f84
parent1e2a1c283192957b260c266f95eee852bf73012d
test(ocpp): add B02/B03 boot notification behavior and E02 Cable-First transaction tests

B02/B03 Pending/Rejected Boot Notification Behavior (11 tests):
- Store interval from Pending/Rejected responses
- State transitions: Pending→Accepted, Pending→Rejected, Rejected→Accepted
- Use interval as heartbeat when in Pending state
- Block message initiation when in Rejected state
- Preserve connector states during Rejected state
- Support configurable retry intervals

E02 Cable-First Transaction Flow (12 tests):
- Cable plug event sequencing and EV detection flow
- Connector status transitions (Available→Occupied)
- Full Cable-First transaction lifecycle
- Context-based trigger reason selection
- Multiple connector independence

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