Skip to content

smoke test enhancements #140

@ericbuckley

Description

@ericbuckley

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

  • 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

  1. list the algorithms
  2. delete any non-default algorithms
  3. update the default algorithm to be not default
  4. create a new default algorithm (can be pretty basic with just 1 pass)
  5. get the newly created algorithm

seed tests

  1. seed the database with a handful of records

link tests

  1. link a new FHIR record, confirm its a no match
  2. link the same record, but in raw format, confirm its a match

patient tests

  1. assign the patient from step 7 to a new person cluster
  2. assign the patient from step 8 to the cluster created in step 9

Background / Context

#103

Metadata

Metadata

Assignees

Labels

qaTechnical improvements to increase code quality

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions