Summary
Create a new script in the tests/smoke directory that runs a more comprehensive set of API tests. The existing CI smoke test workflow should be updated to use this script.
Acceptance Criteria
Details / Tasks
Note: When appropriate, make sure to add assertions in the steps to verify that the response (or part of it) matches the expected. jq --exit-status can be useful here to verify that a value in the response matches the expected, else set a non-zero exit code.
algorithm tests
- list the algorithms
- delete any non-default algorithms
- update the default algorithm to be not default
- create a new default algorithm (can be pretty basic with just 1 pass)
- get the newly created algorithm
seed tests
- seed the database with a handful of records
link tests
- link a new FHIR record, confirm its a no match
- link the same record, but in raw format, confirm its a match
patient tests
- assign the patient from step 7 to a new person cluster
- assign the patient from step 8 to the cluster created in step 9
Background / Context
#103
Summary
Create a new script in the
tests/smokedirectory that runs a more comprehensive set of API tests. The existing CI smoke test workflow should be updated to use this script.Acceptance Criteria
Details / Tasks
Note: When appropriate, make sure to add assertions in the steps to verify that the response (or part of it) matches the expected.
jq --exit-statuscan be useful here to verify that a value in the response matches the expected, else set a non-zero exit code.algorithm tests
seed tests
link tests
patient tests
Background / Context
#103