https://github.com/dvsa/ftts-stub-dvla
https://github.com/dvsa/ftts-stub-dvla
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dvsa/ftts-stub-dvla
- Owner: dvsa
- Created: 2022-12-07T09:59:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-01T16:20:05.000Z (over 3 years ago)
- Last Synced: 2025-02-08T22:28:37.667Z (over 1 year ago)
- Language: TypeScript
- Size: 174 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
The purpose of this repo is the stub for the performance environment mocking the following end points:
POST /v1/drivers/retrieve
POST /v1/authenticate
#Purpose
This should be used to replicate the current behaviour of the DVLA service for performance testing and in the future for functional testing.
#Use
Using these endpoints, it should allow the stub to retrieve any given eligibility details for a DLN, the authenticate POST is there to return 200.
# Installation
1. Install azure-functions-core-tools using homebrew
`brew tap azure/functions`
`brew install azure-functions-core-tools@4`
Note before installing make sure nvm is version 7 or greater to ensure peer dependencies install
Check by running `nvm --version` and update with `npm install -g npm@7.9.0`
2. Install:
`npm i`
# Build, Run and Test
Build:
`npm run build`
Run:
`npm run func:start`
#Testing
To run unit tests:
`npm run test`