Service Virtualization Harness for Self-Service Banking (CRM/OTP/LDAP/Regula Mocks)
A leading Romanian retail bank
Why It Exists
The bank’s self-service modules depend on enterprise systems, CRM, OTP, corporate LDAP and Regula’s document reader, that are impractical to call from every developer laptop or CI run. This repo virtualises those dependencies so the SSS apps can be built, demoed and tested in isolation, deterministically, and without touching production banking systems.
What We Built
A docker-compose harness wiring together lightweight mock services on a shared network: fakeCRM (a hapi server with seeded data/ and handlers/, port 3102), fakeOTP (hapi OTP issuance/verification stub, port 3103), and fakeLDAP (a directory mock for authentication). It also stands up the real Regula docreader container (fakeregula, port 8080) for document-reading flows, parameterised by a license env var. Each mock is a small Node.js/hapi app run with nodemon for hot reload, mirroring the contracts the SSS front-ends and backends expect from CRM, OTP and directory services.
Technologies & Approach
hapi for fast, dependency-free mock endpoints; docker-compose to bring up the whole virtual back office with one command on an external web network shared with the apps under test; nodemon for live editing. Deliberately minimal, the value is in faithfully imitating partner-system contracts, not in heavy logic.
Outcome / Impact
Gave the team a reproducible local and CI environment for the self-service banking suite, removing hard dependencies on live CRM/OTP/LDAP systems and enabling faster, safer iteration on the identity, anti-takeover and credit modules.
Capabilities Demonstrated
- Service virtualization / API mocking for enterprise integrations
- One-command, containerised dev & test environments (docker-compose)
- Faithful stubbing of CRM, OTP and LDAP contracts
- Integrating third-party vendor containers (Regula) into local stacks