]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
test(ocpp): add call chain integration tests for both OCPP stacks
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 18 Mar 2026 18:49:02 +0000 (19:49 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 18 Mar 2026 18:49:02 +0000 (19:49 +0100)
commitdf314809b7e7c5458618235a061117e83ae48cda
treee22cc5110f289edf2b0e2d67f3dbe92268c8febd
parent0d25748bfdc427e530144246bf60e92d3abaea6d
test(ocpp): add call chain integration tests for both OCPP stacks

Verify the single-path contract: requestHandler(minimal params) →
buildRequestPayload(constructs) → sendMessage(complete payload).

OCPP 2.0: StatusNotification, TransactionEvent (with default resolution
for triggerReason, transactionId, connectorId from evse), Heartbeat,
and rawPayload bypass.

OCPP 1.6: StatusNotification (errorCode added by builder),
StartTransaction (meterStart/timestamp enrichment), StopTransaction
(meterStop/timestamp enrichment), Heartbeat.

Remove deleted TransactionContextFixtures from TEST_STYLE_GUIDE.
tests/TEST_STYLE_GUIDE.md
tests/charging-station/ocpp/1.6/OCPP16RequestService-CallChain.test.ts [new file with mode: 0644]
tests/charging-station/ocpp/2.0/OCPP20RequestService-CallChain.test.ts [new file with mode: 0644]