SE701-T5 / Backend

Heroku deployed Node.js backend server developed by Team-5 for the UniForum project associated with the University of Auckland SOFTENG 701 course
https://uni-forum.herokuapp.com/
MIT License
2 stars 18 forks source link

Implement request for database reset #47

Closed R055A closed 2 years ago

R055A commented 2 years ago

Description

The changes in this pull request allow for the removing of all document data from the database collections on API request.

This pull request is dependent on PR #47 being merged.

This pull request also fixes a conflict in testing between parallel CI worjflow jobs by not allowing more than one job to run at a time.

Related Issue

Solves #29

Type of change

How Has This Been Tested?

An automated test has been added specifically for removing all document data from database collections. Additionally, a database reset has been included in the beforeEach() and after() functions for existing tests that interact with the database.

Checklist:

R055A commented 2 years ago

Would we need unit tests for when forum.deleteMany and user.deleteMany throws an error?

All done, thanks.