]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(test): consolidate certificate constants and factory functions
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 1 Mar 2026 22:40:35 +0000 (23:40 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 1 Mar 2026 22:40:35 +0000 (23:40 +0100)
commite205c6d1cd5365991137bdd763cadbf76cfaac2a
tree24fcf89791b4bd8ed512612526eaa68cd07f5ab6
parent33e4c6deb6e2e66f503cd18e01ffd066c736beac
refactor(test): consolidate certificate constants and factory functions

- Create OCPP20CertificateTestData.ts with shared certificate constants
- Add createMockCertificateHashData, createMockCertificateHashDataChain,
  createMockOCSPRequestData factory functions to OCPP20TestUtils.ts
- Migrate 5 test files to use consolidated imports
- Remove duplicate local certificate definitions and factory functions
tests/charging-station/ocpp/2.0/OCPP20CertificateManager.test.ts
tests/charging-station/ocpp/2.0/OCPP20CertificateTestData.ts [new file with mode: 0644]
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-CertificateSigned.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetInstalledCertificateIds.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-InstallCertificate.test.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-ISO15118.test.ts
tests/charging-station/ocpp/2.0/OCPP20TestUtils.ts