Implemented each API's testing and functionality for user microservice. Cypress was installed and configured as in #144 (after Jest tests were already written, then some code, then Jest tests removed), then tests in Cypress were created and the endpoint code iterated to pass these tests. These endpoints defined within the swagger UI under listings, and within the API list in the SRS doc.
Package file based off of #144
[x] POST /api/user
[x] GET /api/user/{id}
[x] PATCH /api/user/{id}
[x] DELETE /api/user/{id}
Closes #82
How to Test
Currently npm run test is not working locally, looking into this.
1.
docker-compose down
docker-compose up --build -d listing database datalayer
2.
Can either run npm test within the docker containers in docker desktop exec panel, or test the endpoints with something such as postman at http://localhost/api/user
Checklist
[ ] The code includes tests if relevant
[ ] I have actually self-reviewed my changes and done QA
Description
Implemented each API's testing and functionality for user microservice. Cypress was installed and configured as in #144 (after Jest tests were already written, then some code, then Jest tests removed), then tests in Cypress were created and the endpoint code iterated to pass these tests. These endpoints defined within the swagger UI under listings, and within the API list in the SRS doc.
Package file based off of #144
Closes #82
How to Test
Currently
npm run test
is not working locally, looking into this.1.
2. Can either run
npm test
within the docker containers in docker desktop exec panel, or test the endpoints with something such as postman at http://localhost/api/userChecklist