]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(tests): make auth integration tests deterministic
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 19:07:37 +0000 (20:07 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Feb 2026 19:07:37 +0000 (20:07 +0100)
commit64385f722c740cf323b70628e7d2244931099ba7
tree63a10cd99dd4fc5a3448800902a99fc0b80ef5ed
parent2491596906feee607cd69085bfa6a75ae7889419
fix(tests): make auth integration tests deterministic

- Removed probabilistic assertion expect(successRate).toBeGreaterThan(50)
- Replaced live integration calls with deterministic mocks
- Used mock patterns from MockFactories.ts throughout
- All 27 auth tests now have explicit 100% pass/fail criteria
- Tests produce consistent results on repeated runs
- Preserved all test scenarios and coverage

Tests: 307 passing (27 new auth tests)
tests/charging-station/ocpp/auth/OCPPAuthIntegration.test.ts