You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
New tests/smoke/api_test.sh script
Updating the CI smoke test workflow to use the above script
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
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
seed tests
link tests
patient tests
Background / Context
#103
The text was updated successfully, but these errors were encountered: