iansmith / parigot

Develop as a monolith, deploy as microservices.
https://parigot.info
BSD 3-Clause "New" or "Revised" License
12 stars 1 forks source link

add tests for file service #23

Closed cindyuc closed 1 year ago

cindyuc commented 1 year ago

It contains 2 main tests: TestOpenClose & TestCreateClose

The current rules are a bit weird...... Files have 2 states: OPEN and CLOSE. Once a file is created, its initial state is CLOSE. When a file is opened, its state will change to OPEN. A file whose status is OPEN cannot be opened or created. A close request will not change the state to CLOSE but will release the file from the file data cache. The question is, if we want to change a file to CLOSE, but not release it, what should we do? (May need to make some changes in status)

netlify[bot] commented 1 year ago

Deploy Preview for parigot canceled.

Name Link
Latest commit 2e29c4caee77c7dcfee76eefe955e363daca5505
Latest deploy log https://app.netlify.com/sites/parigot/deploys/648a06d8d5dd260008a06250