Table of contents

  1. API Smoke Test (Scripted)
  2. USAGE

API Smoke Test (Scripted)

nbs-test-api.sh script is included in the infrastructure zip file (scripts/observability/nbs-test-api)

It will:

  • create a patient
  • search for the patient
  • delete that patient (note: record still exists but is inactive)

It is a bash script that can be run via CloudShell if NBS is hosted in AWS or by any system with bash installed. It requires a user in the database 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..example.com -U -c 10

This will verify api functionality AND populate the observability dashboards with some initial traffic