This repository contains automated tests for the NHS Notify Release
The tests cover the following scenarios:
- NHS Notify Release Testing: Mixed Suppliers - Message Batch
- NHS Notify Release Testing: Mixed Suppliers - Mesh
- NHS Notify Release Testing: ODS Override
- NHS Notify Release Testing: Alternative Contact Details
- NHS Notify Release Testing: No Communications Scenarios
- NHS Notify Release Testing: NHS App Account
- NHS Notify Release Testing: Reporting
- NHS Notify Release Testing: PDF Rendering
- NHS Notify Release Testing: Parallel send
- NHS Notify Release Testing: Anonymous Patients
- NHS Notify Release Testing: Filter rules
Add test profile to .aws/config
[profile test]
sso_start_url = https://d-9c67018f89.awsapps.com/start#
sso_account_id = 736102632839
sso_role_name=CommsMGR-Developer
region = eu-west-2
sso_region = eu-west-2
output = json
Add setacc command to bash profile (.bashrc/.zshrc)
setacc() {
export AWS_PROFILE=$1
};
export PYTHON=$(which python3)
Copy example.env to a .env file and populate values
Create a file called dev-private.key
and populate it with the value of the dev private key
Export environment variables
source .env
Create a virtual environment
python -m venv .venv
Activate virtual environment
source .venv/bin/activate
Install dependencies
poetry install
Set environment to test profile
setacc test
Login to aws
aws sso login
Run all tests
poetry run pytest