From 744a27b2f2e598e4c0c33906b5e5902f015b0a35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 28 Mar 2026 15:45:15 +0100 Subject: [PATCH] style: apply prettier formatting to test files Reformatting applied by lint-staged hooks during previous commits. No behavioral changes. --- src/charging-station/ChargingStation.ts | 2 +- .../ocpp/2.0/OCPP20VariableRegistry.ts | 4 +-- src/utils/Constants.ts | 3 +- ...rgingStationWorkerBroadcastChannel.test.ts | 36 +++++++++---------- ...omingRequestService-TriggerMessage.test.ts | 2 +- .../OCPP16Integration-Transactions.test.ts | 2 +- .../OCPP16RequestService-CallChain.test.ts | 2 +- ...PP16ResponseService-SimpleHandlers.test.ts | 2 +- .../ocpp/1.6/OCPP16TestUtils.ts | 10 +++--- ...ngRequestService-CertificateSigned.test.ts | 4 +-- ...gRequestService-ChangeAvailability.test.ts | 2 +- ...0IncomingRequestService-ClearCache.test.ts | 2 +- ...RequestService-CustomerInformation.test.ts | 2 +- ...ncomingRequestService-DataTransfer.test.ts | 2 +- ...ngRequestService-DeleteCertificate.test.ts | 4 +-- ...comingRequestService-GetBaseReport.test.ts | 2 +- ...Service-GetInstalledCertificateIds.test.ts | 4 +-- ...CPP20IncomingRequestService-GetLog.test.ts | 2 +- ...equestService-GetTransactionStatus.test.ts | 2 +- ...ncomingRequestService-GetVariables.test.ts | 7 ++-- ...gRequestService-InstallCertificate.test.ts | 2 +- ...0IncomingRequestService-MasterPass.test.ts | 2 +- ...estService-RequestStartTransaction.test.ts | 6 ++-- ...uestService-RequestStopTransaction.test.ts | 2 +- ...ngRequestService-SetNetworkProfile.test.ts | 2 +- ...ncomingRequestService-SetVariables.test.ts | 14 ++++---- ...omingRequestService-TriggerMessage.test.ts | 4 +-- ...mingRequestService-UnlockConnector.test.ts | 4 +-- ...omingRequestService-UpdateFirmware.test.ts | 10 +++--- .../2.0/OCPP20Integration-Certificate.test.ts | 2 +- .../ocpp/2.0/OCPP20Integration.test.ts | 2 +- .../OCPP20RequestService-CallChain.test.ts | 2 +- .../OCPP20RequestService-DataTransfer.test.ts | 2 +- ...Service-FirmwareStatusNotification.test.ts | 2 +- .../2.0/OCPP20RequestService-ISO15118.test.ts | 6 ++-- ...questService-LogStatusNotification.test.ts | 2 +- .../OCPP20RequestService-MeterValues.test.ts | 2 +- .../OCPP20RequestService-NotifyReport.test.ts | 2 +- ...tService-SecurityEventNotification.test.ts | 2 +- ...PP20RequestService-SignCertificate.test.ts | 4 +-- ...20ResponseService-BootNotification.test.ts | 2 +- ...PP20ResponseService-SimpleHandlers.test.ts | 2 +- ...20ResponseService-TransactionEvent.test.ts | 4 +-- ...CPP20ServiceUtils-TransactionEvent.test.ts | 14 ++++---- .../ocpp/2.0/OCPP20TestUtils.ts | 8 ++--- .../ocpp/2.0/OCPP20VariableManager.test.ts | 23 ++++++------ .../ocpp/OCPPServiceUtils-meterValues.test.ts | 4 +-- 47 files changed, 110 insertions(+), 117 deletions(-) diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 47e644fb..b1223cdd 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -766,7 +766,7 @@ export class ChargingStation extends EventEmitter { public getWebSocketPingInterval (): number { return getConfigurationKey(this, StandardParametersKey.WebSocketPingInterval) != null ? convertToInt(getConfigurationKey(this, StandardParametersKey.WebSocketPingInterval)?.value) - : Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + : Constants.DEFAULT_WS_PING_INTERVAL } public hasConnector (connectorId: number): boolean { diff --git a/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts b/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts index 617e235f..2d80aee4 100644 --- a/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts +++ b/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts @@ -592,7 +592,7 @@ export const VARIABLE_REGISTRY: Record = { allowZero: true, component: OCPP20ComponentName.ChargingStation, dataType: DataEnumType.integer, - defaultValue: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL.toString(), + defaultValue: Constants.DEFAULT_WS_PING_INTERVAL.toString(), description: 'Interval in seconds between WebSocket ping (keep-alive) frames. 0 disables pings.', max: 3600, @@ -1458,7 +1458,7 @@ export const VARIABLE_REGISTRY: Record = { allowZero: true, component: OCPP20ComponentName.OCPPCommCtrlr, dataType: DataEnumType.integer, - defaultValue: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL.toString(), + defaultValue: Constants.DEFAULT_WS_PING_INTERVAL.toString(), description: '0 disables client side websocket Ping/Pong. Positive values are interpreted as number of seconds between pings. Negative values are not allowed.', min: 0, diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 18f745fa..b932109e 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -85,11 +85,10 @@ export class Constants { static readonly DEFAULT_TX_UPDATED_INTERVAL = 30 // Seconds static readonly DEFAULT_UI_SERVER_HOST = 'localhost' - static readonly DEFAULT_UI_SERVER_PORT = 8080 - static readonly DEFAULT_WEBSOCKET_PING_INTERVAL = 30 // Seconds static readonly DEFAULT_WS_HANDSHAKE_TIMEOUT = 30 // Seconds + static readonly DEFAULT_WS_PING_INTERVAL = 30 // Seconds static readonly DEFAULT_WS_RECONNECT_DELAY = 30 // Seconds static readonly EMPTY_FROZEN_OBJECT = Object.freeze({}) diff --git a/tests/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.test.ts b/tests/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.test.ts index 9a6303e8..b92fcc84 100644 --- a/tests/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.test.ts +++ b/tests/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.test.ts @@ -183,7 +183,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -202,7 +202,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -223,7 +223,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -242,7 +242,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -263,7 +263,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -282,7 +282,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -303,7 +303,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -322,7 +322,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -341,7 +341,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -360,7 +360,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -379,7 +379,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -398,7 +398,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -417,7 +417,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -436,7 +436,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -457,7 +457,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -477,7 +477,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -497,7 +497,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) @@ -516,7 +516,7 @@ await describe('ChargingStationWorkerBroadcastChannel', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) instance = new ChargingStationWorkerBroadcastChannel(station) diff --git a/tests/charging-station/ocpp/1.6/OCPP16IncomingRequestService-TriggerMessage.test.ts b/tests/charging-station/ocpp/1.6/OCPP16IncomingRequestService-TriggerMessage.test.ts index fa4d612c..d2ec110c 100644 --- a/tests/charging-station/ocpp/1.6/OCPP16IncomingRequestService-TriggerMessage.test.ts +++ b/tests/charging-station/ocpp/1.6/OCPP16IncomingRequestService-TriggerMessage.test.ts @@ -283,7 +283,7 @@ await describe('OCPP16IncomingRequestService — TriggerMessage', async () => { stationInfo: { ocppVersion: OCPPVersion.VERSION_16, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const request: OCPP16TriggerMessageRequest = { diff --git a/tests/charging-station/ocpp/1.6/OCPP16Integration-Transactions.test.ts b/tests/charging-station/ocpp/1.6/OCPP16Integration-Transactions.test.ts index bac5fe3e..b6f70485 100644 --- a/tests/charging-station/ocpp/1.6/OCPP16Integration-Transactions.test.ts +++ b/tests/charging-station/ocpp/1.6/OCPP16Integration-Transactions.test.ts @@ -64,7 +64,7 @@ function createIntegrationContext (): { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_16, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) // IncomingRequest service (handles RemoteStart/Stop from CSMS) diff --git a/tests/charging-station/ocpp/1.6/OCPP16RequestService-CallChain.test.ts b/tests/charging-station/ocpp/1.6/OCPP16RequestService-CallChain.test.ts index 27e26bab..f89a49e1 100644 --- a/tests/charging-station/ocpp/1.6/OCPP16RequestService-CallChain.test.ts +++ b/tests/charging-station/ocpp/1.6/OCPP16RequestService-CallChain.test.ts @@ -52,7 +52,7 @@ await describe('OCPP 1.6 Request Call Chain — requestHandler → buildRequestP ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_16, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation }) diff --git a/tests/charging-station/ocpp/1.6/OCPP16ResponseService-SimpleHandlers.test.ts b/tests/charging-station/ocpp/1.6/OCPP16ResponseService-SimpleHandlers.test.ts index feadd991..487ef583 100644 --- a/tests/charging-station/ocpp/1.6/OCPP16ResponseService-SimpleHandlers.test.ts +++ b/tests/charging-station/ocpp/1.6/OCPP16ResponseService-SimpleHandlers.test.ts @@ -43,7 +43,7 @@ function createSimpleHandlerStation (): MockChargingStation { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_16, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return station as MockChargingStation } diff --git a/tests/charging-station/ocpp/1.6/OCPP16TestUtils.ts b/tests/charging-station/ocpp/1.6/OCPP16TestUtils.ts index 825e16e7..4bee624a 100644 --- a/tests/charging-station/ocpp/1.6/OCPP16TestUtils.ts +++ b/tests/charging-station/ocpp/1.6/OCPP16TestUtils.ts @@ -145,7 +145,7 @@ export function createOCPP16IncomingRequestTestContext ( ocppVersion: OCPPVersion.VERSION_16, ...stationInfo, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return { incomingRequestService, station, testableService } @@ -172,7 +172,7 @@ export function createOCPP16ListenerStation (baseName: string): { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_16, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return { requestHandlerMock, station } } @@ -200,7 +200,7 @@ export function createOCPP16RequestTestContext ( ocppVersion: OCPPVersion.VERSION_16, ...stationInfo, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return { requestService, station, testableRequestService } @@ -231,7 +231,7 @@ export function createOCPP16ResponseTestContext ( ocppVersion: OCPPVersion.VERSION_16, ...stationInfo, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return { responseService, station } @@ -262,7 +262,7 @@ export function createStandardStation ( resetTime: 5000, ...stationInfo, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return station as MockChargingStation diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-CertificateSigned.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-CertificateSigned.test.ts index dd29f8cd..db07aab6 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-CertificateSigned.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-CertificateSigned.test.ts @@ -53,7 +53,7 @@ await describe('I04 - CertificateSigned', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation stationWithCertManager = createStationWithCertificateManager( @@ -185,7 +185,7 @@ await describe('I04 - CertificateSigned', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) // certificateManager is not set on this station (not present by default) diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ChangeAvailability.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ChangeAvailability.test.ts index 2f56cd73..b64ceabb 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ChangeAvailability.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ChangeAvailability.test.ts @@ -41,7 +41,7 @@ await describe('G03 - ChangeAvailability', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation const incomingRequestService = new OCPP20IncomingRequestService() diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ClearCache.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ClearCache.test.ts index 0d5247d4..8883b7c2 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ClearCache.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ClearCache.test.ts @@ -36,7 +36,7 @@ await describe('C11 - Clear Authorization Data in Authorization Cache', async () ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation incomingRequestService = new OCPP20IncomingRequestService() diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-CustomerInformation.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-CustomerInformation.test.ts index bf6d8c1a..a6063f8f 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-CustomerInformation.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-CustomerInformation.test.ts @@ -38,7 +38,7 @@ await describe('N32 - CustomerInformation', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation testableService = createTestableIncomingRequestService(new OCPP20IncomingRequestService()) diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-DataTransfer.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-DataTransfer.test.ts index 24a8fdba..dc801aeb 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-DataTransfer.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-DataTransfer.test.ts @@ -30,7 +30,7 @@ await describe('P01 - DataTransfer', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation testableService = createTestableIncomingRequestService(new OCPP20IncomingRequestService()) diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-DeleteCertificate.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-DeleteCertificate.test.ts index 1e37b330..54be6174 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-DeleteCertificate.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-DeleteCertificate.test.ts @@ -61,7 +61,7 @@ await describe('I04 - DeleteCertificate', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation @@ -182,7 +182,7 @@ await describe('I04 - DeleteCertificate', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const stationNoCertManager = diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetBaseReport.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetBaseReport.test.ts index 17d3f37c..b04adb71 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetBaseReport.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetBaseReport.test.ts @@ -77,7 +77,7 @@ await describe('B07 - Get Base Report', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetInstalledCertificateIds.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetInstalledCertificateIds.test.ts index 0f428738..51e38d7f 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetInstalledCertificateIds.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetInstalledCertificateIds.test.ts @@ -45,7 +45,7 @@ await describe('I04 - GetInstalledCertificateIds', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation @@ -244,7 +244,7 @@ await describe('I04 - GetInstalledCertificateIds', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) // Explicitly set to null/undefined diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetLog.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetLog.test.ts index 12c16ed3..b6ba9715 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetLog.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetLog.test.ts @@ -44,7 +44,7 @@ await describe('K01 - GetLog', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation testableService = createTestableIncomingRequestService(new OCPP20IncomingRequestService()) diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetTransactionStatus.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetTransactionStatus.test.ts index f2962d20..7f9ed904 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetTransactionStatus.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetTransactionStatus.test.ts @@ -33,7 +33,7 @@ await describe('D14 - GetTransactionStatus', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation testableService = createTestableIncomingRequestService(new OCPP20IncomingRequestService()) diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetVariables.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetVariables.test.ts index b88adec8..6743d2ac 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetVariables.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetVariables.test.ts @@ -50,7 +50,7 @@ await describe('B06 - Get Variables', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = newStation incomingRequestService = new OCPP20IncomingRequestService() @@ -101,10 +101,7 @@ await describe('B06 - Get Variables', async () => { const secondResult = response.getVariableResult[1] assert.strictEqual(secondResult.attributeStatus, GetVariableStatusEnumType.Accepted) assert.strictEqual(secondResult.attributeType, AttributeEnumType.Actual) - assert.strictEqual( - secondResult.attributeValue, - Constants.DEFAULT_WEBSOCKET_PING_INTERVAL.toString() - ) + assert.strictEqual(secondResult.attributeValue, Constants.DEFAULT_WS_PING_INTERVAL.toString()) assert.strictEqual(secondResult.component.name, OCPP20ComponentName.ChargingStation) assert.strictEqual(secondResult.variable.name, OCPP20OptionalVariableName.WebSocketPingInterval) assert.strictEqual(secondResult.attributeStatusInfo, undefined) diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-InstallCertificate.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-InstallCertificate.test.ts index 35f8f5c8..a995279b 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-InstallCertificate.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-InstallCertificate.test.ts @@ -52,7 +52,7 @@ await describe('I03 - InstallCertificate', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) mockStation = initialStation diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-MasterPass.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-MasterPass.test.ts index 76091535..be9c1d9b 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-MasterPass.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-MasterPass.test.ts @@ -49,7 +49,7 @@ await describe('C12.FR.09 - MasterPassGroupId Check', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) mockStation = station const incomingRequestService = new OCPP20IncomingRequestService() diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStartTransaction.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStartTransaction.test.ts index 60eb3de0..51f02222 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStartTransaction.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStartTransaction.test.ts @@ -59,7 +59,7 @@ await describe('F01 & F02 - Remote Start Transaction', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) mockStation = station incomingRequestService = new OCPP20IncomingRequestService() @@ -109,7 +109,7 @@ await describe('F01 & F02 - Remote Start Transaction', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const stationId = spyChargingStation.stationInfo?.chargingStationId ?? 'unknown' @@ -543,7 +543,7 @@ await describe('F01 & F02 - Remote Start Transaction', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const failStationId = failStation.stationInfo?.chargingStationId ?? 'unknown' diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStopTransaction.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStopTransaction.test.ts index eb015fa1..507ab408 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStopTransaction.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-RequestStopTransaction.test.ts @@ -317,7 +317,7 @@ await describe('F03 - Remote Stop Transaction', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const failStationId = failStation.stationInfo?.chargingStationId ?? 'unknown' diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetNetworkProfile.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetNetworkProfile.test.ts index 42e03490..7191b61f 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetNetworkProfile.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetNetworkProfile.test.ts @@ -38,7 +38,7 @@ await describe('B43 - SetNetworkProfile', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation testableService = createTestableIncomingRequestService(new OCPP20IncomingRequestService()) diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetVariables.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetVariables.test.ts index 1110e073..3794aff6 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetVariables.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-SetVariables.test.ts @@ -56,7 +56,7 @@ await describe('B05 - Set Variables', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) mockStation = station incomingRequestService = new OCPP20IncomingRequestService() @@ -75,7 +75,7 @@ await describe('B05 - Set Variables', async () => { setVariableData: [ { attributeType: AttributeEnumType.Actual, - attributeValue: (Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + 1).toString(), + attributeValue: (Constants.DEFAULT_WS_PING_INTERVAL + 1).toString(), component: { name: OCPP20ComponentName.ChargingStation }, variable: { name: OCPP20OptionalVariableName.WebSocketPingInterval }, }, @@ -214,7 +214,7 @@ await describe('B05 - Set Variables', async () => { setVariableData: [ // Accepted { - attributeValue: (Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + 3).toString(), + attributeValue: (Constants.DEFAULT_WS_PING_INTERVAL + 3).toString(), component: { name: OCPP20ComponentName.ChargingStation }, variable: { name: OCPP20OptionalVariableName.WebSocketPingInterval }, }, @@ -234,7 +234,7 @@ await describe('B05 - Set Variables', async () => { // Unsupported attribute type (WebSocketPingInterval) { attributeType: AttributeEnumType.Target, - attributeValue: (Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + 10).toString(), + attributeValue: (Constants.DEFAULT_WS_PING_INTERVAL + 10).toString(), component: { name: OCPP20ComponentName.ChargingStation }, variable: { name: OCPP20OptionalVariableName.WebSocketPingInterval }, }, @@ -274,7 +274,7 @@ await describe('B05 - Set Variables', async () => { setVariableData: [ { attributeType: AttributeEnumType.Target, - attributeValue: (Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + 6).toString(), + attributeValue: (Constants.DEFAULT_WS_PING_INTERVAL + 6).toString(), component: { name: OCPP20ComponentName.ChargingStation }, variable: { name: OCPP20OptionalVariableName.WebSocketPingInterval }, }, @@ -311,7 +311,7 @@ await describe('B05 - Set Variables', async () => { // FR: B07.FR.10 await it('should persist HeartbeatInterval and WebSocketPingInterval after setting', () => { const hbNew = (millisecondsToSeconds(Constants.DEFAULT_HEARTBEAT_INTERVAL) + 20).toString() - const wsNew = (Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + 20).toString() + const wsNew = (Constants.DEFAULT_WS_PING_INTERVAL + 20).toString() const setRequest: OCPP20SetVariablesRequest = { setVariableData: [ { @@ -400,7 +400,7 @@ await describe('B05 - Set Variables', async () => { const request: OCPP20SetVariablesRequest = { setVariableData: [ { - attributeValue: (Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + 2).toString(), + attributeValue: (Constants.DEFAULT_WS_PING_INTERVAL + 2).toString(), component: { name: OCPP20ComponentName.ChargingStation }, variable: { name: OCPP20OptionalVariableName.WebSocketPingInterval }, }, diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-TriggerMessage.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-TriggerMessage.test.ts index 519fbe05..a0730e3a 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-TriggerMessage.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-TriggerMessage.test.ts @@ -51,7 +51,7 @@ function createTriggerMessageStation (): { stationInfo: { ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const mockStation = station as MockChargingStation return { mockStation, requestHandlerMock } @@ -571,7 +571,7 @@ await describe('F06 - TriggerMessage', async () => { stationInfo: { ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const request: OCPP20TriggerMessageRequest = { diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-UnlockConnector.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-UnlockConnector.test.ts index ea86a334..936f3cba 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-UnlockConnector.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-UnlockConnector.test.ts @@ -47,7 +47,7 @@ function createUnlockConnectorStation (): { stationInfo: { ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return { mockStation: station as MockChargingStation, requestHandlerMock } } @@ -171,7 +171,7 @@ await describe('F05 - UnlockConnector', async () => { stationInfo: { ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const multiConnectorStation = station as MockChargingStation diff --git a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-UpdateFirmware.test.ts b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-UpdateFirmware.test.ts index 2f8d1357..121a0f69 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-UpdateFirmware.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-UpdateFirmware.test.ts @@ -49,7 +49,7 @@ await describe('L01/L02 - UpdateFirmware', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation testableService = createTestableIncomingRequestService(new OCPP20IncomingRequestService()) @@ -91,7 +91,7 @@ await describe('L01/L02 - UpdateFirmware', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) createStationWithCertificateManager(stationWithCert, certManager) @@ -123,7 +123,7 @@ await describe('L01/L02 - UpdateFirmware', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) createStationWithCertificateManager(stationWithCert, certManager) @@ -170,7 +170,7 @@ await describe('L01/L02 - UpdateFirmware', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) // Set an active transaction on EVSE 1's connector @@ -208,7 +208,7 @@ await describe('L01/L02 - UpdateFirmware', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const request: OCPP20UpdateFirmwareRequest = { diff --git a/tests/charging-station/ocpp/2.0/OCPP20Integration-Certificate.test.ts b/tests/charging-station/ocpp/2.0/OCPP20Integration-Certificate.test.ts index 5d5ccbb6..20734005 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20Integration-Certificate.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20Integration-Certificate.test.ts @@ -42,7 +42,7 @@ function createIntegrationStation (): ChargingStation { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return station } diff --git a/tests/charging-station/ocpp/2.0/OCPP20Integration.test.ts b/tests/charging-station/ocpp/2.0/OCPP20Integration.test.ts index 652b9c22..470373dd 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20Integration.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20Integration.test.ts @@ -44,7 +44,7 @@ function createIntegrationStation (): ChargingStation { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return station } diff --git a/tests/charging-station/ocpp/2.0/OCPP20RequestService-CallChain.test.ts b/tests/charging-station/ocpp/2.0/OCPP20RequestService-CallChain.test.ts index 5cdba844..4b9fa3a5 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20RequestService-CallChain.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20RequestService-CallChain.test.ts @@ -48,7 +48,7 @@ await describe('OCPP 2.0 Request Call Chain — requestHandler → buildRequestP ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation }) diff --git a/tests/charging-station/ocpp/2.0/OCPP20RequestService-DataTransfer.test.ts b/tests/charging-station/ocpp/2.0/OCPP20RequestService-DataTransfer.test.ts index be6c77c1..a20ea121 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20RequestService-DataTransfer.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20RequestService-DataTransfer.test.ts @@ -39,7 +39,7 @@ await describe('P02 - DataTransfer', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = newStation diff --git a/tests/charging-station/ocpp/2.0/OCPP20RequestService-FirmwareStatusNotification.test.ts b/tests/charging-station/ocpp/2.0/OCPP20RequestService-FirmwareStatusNotification.test.ts index 098438cb..4239018f 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20RequestService-FirmwareStatusNotification.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20RequestService-FirmwareStatusNotification.test.ts @@ -40,7 +40,7 @@ await describe('J01 - FirmwareStatusNotification', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = newStation diff --git a/tests/charging-station/ocpp/2.0/OCPP20RequestService-ISO15118.test.ts b/tests/charging-station/ocpp/2.0/OCPP20RequestService-ISO15118.test.ts index 2262a3ee..6945a316 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20RequestService-ISO15118.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20RequestService-ISO15118.test.ts @@ -46,7 +46,7 @@ await describe('OCPP20 ISO15118 Request Service', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = newStation }) @@ -213,7 +213,7 @@ await describe('OCPP20 ISO15118 Request Service', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = result.station }) @@ -339,7 +339,7 @@ await describe('OCPP20 ISO15118 Request Service', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = result.station }) diff --git a/tests/charging-station/ocpp/2.0/OCPP20RequestService-LogStatusNotification.test.ts b/tests/charging-station/ocpp/2.0/OCPP20RequestService-LogStatusNotification.test.ts index b0063a93..3c8a0534 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20RequestService-LogStatusNotification.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20RequestService-LogStatusNotification.test.ts @@ -40,7 +40,7 @@ await describe('M04 - LogStatusNotification', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = newStation diff --git a/tests/charging-station/ocpp/2.0/OCPP20RequestService-MeterValues.test.ts b/tests/charging-station/ocpp/2.0/OCPP20RequestService-MeterValues.test.ts index 24e34af8..7b99540d 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20RequestService-MeterValues.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20RequestService-MeterValues.test.ts @@ -39,7 +39,7 @@ await describe('G01 - MeterValues', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = newStation diff --git a/tests/charging-station/ocpp/2.0/OCPP20RequestService-NotifyReport.test.ts b/tests/charging-station/ocpp/2.0/OCPP20RequestService-NotifyReport.test.ts index 22a2857f..32b0d1b3 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20RequestService-NotifyReport.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20RequestService-NotifyReport.test.ts @@ -54,7 +54,7 @@ await describe('B07/B08 - NotifyReport', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = createdStation }) diff --git a/tests/charging-station/ocpp/2.0/OCPP20RequestService-SecurityEventNotification.test.ts b/tests/charging-station/ocpp/2.0/OCPP20RequestService-SecurityEventNotification.test.ts index 75d78fd1..7988c353 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20RequestService-SecurityEventNotification.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20RequestService-SecurityEventNotification.test.ts @@ -38,7 +38,7 @@ await describe('A04 - SecurityEventNotification', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = newStation diff --git a/tests/charging-station/ocpp/2.0/OCPP20RequestService-SignCertificate.test.ts b/tests/charging-station/ocpp/2.0/OCPP20RequestService-SignCertificate.test.ts index dc432bc9..ff987659 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20RequestService-SignCertificate.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20RequestService-SignCertificate.test.ts @@ -39,7 +39,7 @@ await describe('I02 - SignCertificate Request', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = createdStation station.ocppConfiguration = { @@ -350,7 +350,7 @@ await describe('I02 - SignCertificate Request', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) stationWithoutCertManager.ocppConfiguration = { diff --git a/tests/charging-station/ocpp/2.0/OCPP20ResponseService-BootNotification.test.ts b/tests/charging-station/ocpp/2.0/OCPP20ResponseService-BootNotification.test.ts index 16ba3781..a49a71d8 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20ResponseService-BootNotification.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20ResponseService-BootNotification.test.ts @@ -49,7 +49,7 @@ function createBootNotificationStation (): MockChargingStation { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return station as MockChargingStation } diff --git a/tests/charging-station/ocpp/2.0/OCPP20ResponseService-SimpleHandlers.test.ts b/tests/charging-station/ocpp/2.0/OCPP20ResponseService-SimpleHandlers.test.ts index cbbc9ec9..c2b80f60 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20ResponseService-SimpleHandlers.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20ResponseService-SimpleHandlers.test.ts @@ -35,7 +35,7 @@ function createSimpleHandlerStation (): MockChargingStation { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return station as MockChargingStation } diff --git a/tests/charging-station/ocpp/2.0/OCPP20ResponseService-TransactionEvent.test.ts b/tests/charging-station/ocpp/2.0/OCPP20ResponseService-TransactionEvent.test.ts index b578be1b..541bf628 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20ResponseService-TransactionEvent.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20ResponseService-TransactionEvent.test.ts @@ -88,7 +88,7 @@ await describe('D01 - TransactionEvent Response', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = mockStation // Set connector transactionId to the UUID string used in request payloads @@ -287,7 +287,7 @@ await describe('D01 - TransactionEvent Response', async () => { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) setupConnectorWithTransaction(multiStation, 1, { transactionId: 10 }) const connector1 = multiStation.getConnectorStatus(1) diff --git a/tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts b/tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts index dd877c7e..7a3500c5 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts @@ -103,7 +103,7 @@ await describe('OCPP20 TransactionEvent ServiceUtils', async () => { ocppStrictCompliance: true, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) mockStation = station resetLimits(mockStation) @@ -339,7 +339,7 @@ await describe('OCPP20 TransactionEvent ServiceUtils', async () => { ocppStrictCompliance: true, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const connectorId = 1 @@ -513,7 +513,7 @@ await describe('OCPP20 TransactionEvent ServiceUtils', async () => { ocppStrictCompliance: true, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const connectorId = 1 @@ -592,7 +592,7 @@ await describe('OCPP20 TransactionEvent ServiceUtils', async () => { ocppStrictCompliance: true, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) mockStation = station resetLimits(mockStation) @@ -1941,7 +1941,7 @@ await describe('OCPP20 TransactionEvent ServiceUtils', async () => { ocppStrictCompliance: true, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) errorStation.isWebSocketConnectionOpened = () => false @@ -2286,7 +2286,7 @@ await describe('OCPP20 TransactionEvent ServiceUtils', async () => { ocppStrictCompliance: true, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) // Mock WebSocket as open @@ -2718,7 +2718,7 @@ await describe('OCPP20 TransactionEvent ServiceUtils', async () => { ocppStrictCompliance: true, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = s resetLimits(station) diff --git a/tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts b/tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts index 6f3209e6..a346c07d 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts @@ -143,7 +143,7 @@ export function createMockStationWithRequestTracking (): MockStationWithTracking ocppStrictCompliance: true, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station.isWebSocketConnectionOpened = () => isOnline @@ -187,7 +187,7 @@ export function createOCPP20RequestTestContext ( ocppVersion: OCPPVersion.VERSION_201, ...stationInfo, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return { requestService, station, testableRequestService } @@ -508,7 +508,7 @@ export const ResetTestFixtures = { ocppVersion: OCPPVersion.VERSION_201, resetTime: 5000, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const mockStation = station as MockChargingStation mockStation.getNumberOfRunningTransactions = () => runningTransactions @@ -723,7 +723,7 @@ export function createOCPP20ListenerStation (baseName: string): { ocppStrictCompliance: false, ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) return { requestHandlerMock, station } } diff --git a/tests/charging-station/ocpp/2.0/OCPP20VariableManager.test.ts b/tests/charging-station/ocpp/2.0/OCPP20VariableManager.test.ts index 6e5fd3b4..ef969058 100644 --- a/tests/charging-station/ocpp/2.0/OCPP20VariableManager.test.ts +++ b/tests/charging-station/ocpp/2.0/OCPP20VariableManager.test.ts @@ -93,14 +93,14 @@ await describe('B05 - OCPP20VariableManager', async () => { StandardParametersKey.WebSocketPingInterval ), readonly: false, - value: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL.toString(), + value: Constants.DEFAULT_WS_PING_INTERVAL.toString(), }, ], }, stationInfo: { ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = newStation }) @@ -367,10 +367,7 @@ await describe('B05 - OCPP20VariableManager', async () => { // Second variable: WebSocketPingInterval assert.strictEqual(result[1].attributeStatus, GetVariableStatusEnumType.Accepted) assert.strictEqual(result[1].attributeType, AttributeEnumType.Actual) - assert.strictEqual( - result[1].attributeValue, - Constants.DEFAULT_WEBSOCKET_PING_INTERVAL.toString() - ) + assert.strictEqual(result[1].attributeValue, Constants.DEFAULT_WS_PING_INTERVAL.toString()) assert.strictEqual(result[1].component.name, OCPP20ComponentName.ChargingStation) assert.strictEqual(result[1].variable.name, OCPP20OptionalVariableName.WebSocketPingInterval) assert.strictEqual(result[1].attributeStatusInfo, undefined) @@ -489,7 +486,7 @@ await describe('B05 - OCPP20VariableManager', async () => { await it('should accept setting writable variables (Actual default)', () => { const request: OCPP20SetVariableDataType[] = [ { - attributeValue: (Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + 1).toString(), + attributeValue: (Constants.DEFAULT_WS_PING_INTERVAL + 1).toString(), component: { name: OCPP20ComponentName.ChargingStation }, variable: { name: OCPP20OptionalVariableName.WebSocketPingInterval }, }, @@ -601,7 +598,7 @@ await describe('B05 - OCPP20VariableManager', async () => { await it('should handle multiple mixed SetVariables in one call', () => { const request: OCPP20SetVariableDataType[] = [ { - attributeValue: (Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + 2).toString(), + attributeValue: (Constants.DEFAULT_WS_PING_INTERVAL + 2).toString(), component: { name: OCPP20ComponentName.ChargingStation }, variable: { name: OCPP20OptionalVariableName.WebSocketPingInterval }, }, @@ -793,7 +790,7 @@ await describe('B05 - OCPP20VariableManager', async () => { const request: OCPP20SetVariableDataType[] = [ { attributeType: AttributeEnumType.Target, - attributeValue: (Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + 5).toString(), + attributeValue: (Constants.DEFAULT_WS_PING_INTERVAL + 5).toString(), component: { name: OCPP20ComponentName.ChargingStation }, variable: { name: OCPP20OptionalVariableName.WebSocketPingInterval }, }, @@ -891,7 +888,7 @@ await describe('B05 - OCPP20VariableManager', async () => { ])[0] const posRes = manager.setVariables(station, [ { - attributeValue: (Constants.DEFAULT_WEBSOCKET_PING_INTERVAL + 10).toString(), + attributeValue: (Constants.DEFAULT_WS_PING_INTERVAL + 10).toString(), component: { name: OCPP20ComponentName.ChargingStation }, variable: { name: OCPP20OptionalVariableName.WebSocketPingInterval }, }, @@ -1730,7 +1727,7 @@ await describe('B05 - OCPP20VariableManager', async () => { stationInfo: { ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) await it('should return NotSupportedAttributeType for MinSet HeartbeatInterval', () => { @@ -2198,7 +2195,7 @@ await describe('B05 - OCPP20VariableManager', async () => { hashId: 'station-a-hash', ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) const { station: stationB } = createMockChargingStation({ baseName: 'StationB', @@ -2209,7 +2206,7 @@ await describe('B05 - OCPP20VariableManager', async () => { hashId: 'station-b-hash', ocppVersion: OCPPVersion.VERSION_201, }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) try { diff --git a/tests/charging-station/ocpp/OCPPServiceUtils-meterValues.test.ts b/tests/charging-station/ocpp/OCPPServiceUtils-meterValues.test.ts index 9418d7aa..09b04f71 100644 --- a/tests/charging-station/ocpp/OCPPServiceUtils-meterValues.test.ts +++ b/tests/charging-station/ocpp/OCPPServiceUtils-meterValues.test.ts @@ -51,7 +51,7 @@ await describe('buildMeterValue', async () => { connectorsCount: 1, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_16 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = s const connectorStatus = station.getConnectorStatus(1) @@ -87,7 +87,7 @@ await describe('buildMeterValue', async () => { evseConfiguration: { evsesCount: 1 }, heartbeatInterval: Constants.DEFAULT_HEARTBEAT_INTERVAL, stationInfo: { ocppVersion: OCPPVersion.VERSION_201 }, - websocketPingInterval: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL, + websocketPingInterval: Constants.DEFAULT_WS_PING_INTERVAL, }) station = s const connectorStatus = station.getConnectorStatus(1) -- 2.43.0