test, all unittest pass here
MODIFY
src/server/ocpp/services/OCPPService.ts
src/server/ocpp/services/OCPPService.ts
@@ -332,7 +332,7 @@ export default class OCPPService {
const { chargingStation, tenant } = headers;
try {
// Check props
- OCPPValidation.getInstance().validateFirmwareStatusNotification(firmwareStatusNotification);
+ OCPPValidation.getInstance().validateFirmwareStatusNotification(chargingStation, firmwareStatusNotification);
// Enrich
this.enrichOCPPRequest(chargingStation, firmwareStatusNotification);
// Save the status to Charging Station

MODIFY
src/server/ocpp/validation/OCPPValidation.ts
src/server/ocpp/validation/OCPPValidation.ts
@@ -72,7 +72,7 @@ export default class OCPPValidation extends SchemaValidator {
this.validate(this.diagnosticsStatusNotificationRequest, diagnosticsStatusNotification);
}
- public validateFirmwareStatusNotification(
+ public validateFirmwareStatusNotification(chargingStation: ChargingStation,
firmwareStatusNotification: OCPPFirmwareStatusNotificationRequestExtended): void {
this.validate(this.firmwareStatusNotificationRequest, firmwareStatusNotification);
}

test, all unittest pass here