biocore / microsetta-private-api

A private microservice to support The Microsetta Initiative
BSD 3-Clause "New" or "Revised" License
6 stars 19 forks source link

[WIP] API Integration Testing #37

Open dhakim87 opened 4 years ago

dhakim87 commented 4 years ago

Goal is to ensure that Departure can do everything Departure needs to do using the API.

Use unit testing framework, ideally mock database but can just reset database with scripts for now.

These workflows must be possible even starting from nothing but a kit id or nothing but a login JWT, sometimes differentiating the required integration tests from unit tests of individual api functions.

dhakim87 commented 4 years ago

View and edit survey answers for a particular survey. Editing should be locked if any of the samples associated with that survey are received

Per #48: Editing survey answers doesn't appear to be part of our API. Can we drop this from MS-1?

List the external surveys available for a source

Per #46: Appears external surveys are moved to MS-2, Can we drop this from the list?