]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
test(auth): strengthen assertion quality and edge case coverage
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 21 Mar 2026 18:41:46 +0000 (19:41 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 21 Mar 2026 18:41:46 +0000 (19:41 +0100)
commit4943d4f9b706c2f81ef845add2c4f7db72d83cdd
treeab5034f2f54a4ea2a60f40bb9e5dfb25d34c1e7e
parentf369b3ad1613a219f599689d48e3cd43d705f52a
test(auth): strengthen assertion quality and edge case coverage

- G03.FR.01 cache tests now verify status and TTL, not just cache key
- Add stats increment verification after success and failure auth
- Add cache error resilience test (cache.set throws)
- Add idTag boundary tests for exactly 19, 20, 21 characters
- Rename misleading 'concurrent operations' test to 'sequential batch'
tests/charging-station/ocpp/auth/cache/InMemoryAuthCache.test.ts
tests/charging-station/ocpp/auth/strategies/RemoteAuthStrategy.test.ts
tests/charging-station/ocpp/auth/utils/AuthValidators.test.ts