A variety of example Local Matching Services for use with GOV.UK Verify
NOTE: These are not intended for production use and have been written for learning and development of the Verify tech team.
There is documentation about Local Matching Services available
There are some simple tests within this repository that can be used to test a Local Matching Service.
Run the tests as follows, replacing the URLs as appropriate for your test local matching service:
cd local-matching-service-tests
mvn test -DMATCHING_URL=http://localhost:50139/ruby/matching-service -DUSER_ACCOUNT_CREATION_URL=http://localhost:50139/ruby/account-creation
Note:
- the tests are not representative of a real matching strategy
- older versions of the MSA send POSTs with gzip compressed JSON by default
Matching Cycle | Data to check | Expected Response |
---|---|---|
Cycle 0+1 | n/a | match |
Cycle 0+1 | Surname[0] is "Griffin" | no-match |
Cycle 3 | "nino" is "goodvalue" | match |
Cycle 3 | "nino" is "badvalue" | no-match |
Account creation | PersistentId is "successPid" (see note) | success |
Account creation | PersistentId is "failurePid" (see note) | failure |
Note: account creation is not expected to fail based on a PersistentId, but this allow deterministic testing
./pre-commit.sh