API smoke test for Modernization API
On this page
The nbs-test-api.sh script is included in the infrastructure zip file at scripts/observability/nbs-test-api.
This script will:
- Create a patient
- Search for the patient
- Delete that patient (the record still exists but is inactive)
This Bash script can run using CloudShell if NBS is hosted in AWS, or on any system with Bash installed. It requires a database user that can run API calls.
curl is the only other dependency.
Usage
nbs-test-api.sh [-h] [-?] [-d] [-D] [-P] [-B BASE_URL] [-U USER] [-c count]
For the initial smoke test run:
nbs-test-api.sh -B https://app.<your-site>.<your-domain>.com -U <apiuser> -c 10
This command verifies API functionality and populates the observability dashboards with initial traffic.