Skip to content

Commit

Permalink
Merge pull request #20 from connected-hil/fix/add-security-actions-to…
Browse files Browse the repository at this point in the history
…-rpc

fix(call v16): Adds security addition actions to rpc schema
  • Loading branch information
larte authored May 3, 2024
2 parents 8511240 + 4599443 commit dc70710
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/schemas/v16/rpc-call.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,36 @@
"Authorize",
"BootNotification",
"CancelReservation",
"CertificateSigned",
"ChangeAvailability",
"ChangeConfiguration",
"ClearCache",
"ClearChargingProfile",
"DataTransfer",
"DeleteCertificate",
"DiagnosticsStatusNotification",
"ExtendedTriggerMessage",
"FirmwareStatusNotification",
"GetCompositeSchedule",
"GetConfiguration",
"GetDiagnostics",
"GetInstalledCertificateIds",
"GetLocalListVersion",
"GetLog",
"Heartbeat",
"InstallCertificate",
"LogStatusNotification",
"MeterValues",
"RemoteStartTransaction",
"RemoteStopTransaction",
"ReserveNow",
"Reset",
"SecurityEventNotification",
"SendLocalList",
"SetChargingProfile",
"SignCertificate",
"SignedFirmwareStatusNotification",
"SignedUpdateFirmware",
"StartTransaction",
"StatusNotification",
"StopTransaction",
Expand Down
9 changes: 9 additions & 0 deletions tests/ocpp-messages-v16.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ const exampleRequests: Array<TestCase<OCPPCallV16>> = [
action: "Heartbeat",
payload: {}
}
},
{
input: "[2,\"5\",\"SecurityEventNotification\",{\"timestamp\":\"2024-04-25T23:04:15Z\",\"type\":\"InvalidMessages\"}]",
expected: {
messageId: "5",
messageTypeId: 2,
action: "SecurityEventNotification",
payload: { timestamp: "2024-04-25T23:04:15Z", type: "InvalidMessages" }
}
}
];

Expand Down

0 comments on commit dc70710

Please sign in to comment.