Skip to content

govuk-one-login/orch-stubs

Repository files navigation

Performance and scaling stubs

These stubs are owned by Orchestration for performance and scaling testing purposes.

There will be three stubs - one for Authentication, one for IPV, and one for SPOT. This will allow Orchestration to exercise different journeys, write Orchestration specific acceptance tests, execute Orchestration performance tests, and test IPV in lower environments.

Prerequisites

A version of SAM CLI (v1.120.0+) that supports Node.js version 20. See the AWS SAM CLI installation guide.

Build

To build the app

npm run build

Start

To start the app locally (requires Docker)

npm run build && npm run start:local

Clean Build

To clean build the app (try if you encounter issues re-running build)

npm run clean && npm run build

Private and public keys

Private and public keys are be needed for decryption and signature validation.

The local private key (in parameters.json) has been commited deliberately. The key pair was generated fresh and should only be used for testing, both locally and as part of the pre-merge GitHub workflow.

In deployed environments, the private key will be retrieved from AWS Secrets Manager, and the public key from AWS Parameter Store. This key pair is different from the one which has been commited here.

Formatting and Linting

Scripts

To check

npm run check; # Check all
npm run check:lint; # Check linting
npm run check:prettier; # Check prettier

To fix formatting/linting

npm run fix; # Fix all
npm run fix:lint; # Fix linting
npm run fix:prettier; # Fix prettier

Test

To run tests

npm run test

To run tests with coverage

npm run test:coverage

About

Stubs owned by Orchestration for testing purposes

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages