Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smoke test enhancements #140

Open
2 tasks
ericbuckley opened this issue Nov 21, 2024 · 0 comments
Open
2 tasks

smoke test enhancements #140

ericbuckley opened this issue Nov 21, 2024 · 0 comments
Labels
qa Technical improvements to increase code quality

Comments

@ericbuckley
Copy link
Collaborator

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

@ericbuckley ericbuckley added the qa Technical improvements to increase code quality label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qa Technical improvements to increase code quality
Projects
None yet
Development

No branches or pull requests

1 participant