]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
test(charging-station): add message buffering, reservation tests and OCPP spec reference
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 11:52:37 +0000 (12:52 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 14:00:20 +0000 (15:00 +0100)
commitd67cad20bb7a964e513c5fc2327b118f1885925d
tree068cc04d072e478d0d42158ce54542f361b79f26
parent2b95898b3f098c4fabe5d29687e73bfaa50e82da
test(charging-station): add message buffering, reservation tests and OCPP spec reference

- Add Message Buffering tests (8 tests): buffer/flush cycle, offline queueing,
  flush ordering, edge cases with rapid connect/disconnect
- Add Reservation Management tests (5+ tests): add/remove reservations,
  query by reservationId/idTag/connectorId, connector 0 restrictions,
  multiple reservations handling
- Create OCPPSpecRequirements.md with OCPP specification references for all
  test domains (1.6, 2.0.1, 2.1) covering boot notification, heartbeat,
  WebSocket protocol, transactions, and connector states
- Fix lint errors in ChargingStationTestUtils.ts (type safety improvements)

Test count: 136 tests across 10 domains
Coverage: Lifecycle, Connector/EVSE, Boot Notification, Configuration,
         WebSocket, Transactions, Heartbeat/Ping, Error Recovery,
         Message Buffering, Reservations
tests/charging-station/ChargingStation.test.ts
tests/charging-station/ChargingStationTestUtils.ts
tests/charging-station/OCPPSpecRequirements.md [new file with mode: 0644]