verify-sample-local-matching-services
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.
What is a Local Matching Service?
There is documentation about Local Matching Services available
Tests
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
Test cases
Matching Cycle | Data to check | Expected Response |
---|---|---|
Cycle 0+1 | n/a | no-match |
Cycle 0+1 | Surname[0] is "Griffin" | match |
Cycle 3 | "nino" is "goodvalue" | match |
Cycle 3 | "nino" is "badvalue" | no-match |
Account creation | levelOfAssurance is LEVEL_2 | success |
Account creation | levelOfAssurance is LEVEL_1 | failure |
Example implementations
Running the tests
./pre-commit.sh