Code Monkey home page Code Monkey logo

verify-sample-local-matching-services's Introduction

verify-sample-local-matching-services

Build Status

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

verify-sample-local-matching-services's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.