ITU-BDSA2024-GROUP23 / Chirp

🐥 Chirp platform
https://bdsagroup23chirprazor.azurewebsites.net
Apache License 2.0
0 stars 0 forks source link

Refactor tests for database #25

Closed victormemborg closed 1 month ago

victormemborg commented 1 month ago

Since we have refactored our CSVDatabase and deployed a CSVDBService, we need to refactor our current tests to fit the new solution.

Acceptance criteria:

This can be achieved by:

a) When you send an HTTP GET request to the /cheeps endpoint the status code of the HTTP response is 200 and the response body contains a list of Cheep objects serialized to JSON. b) When you send an HTTP POST request to the /cheep endpoint with a request body containing a JSON serialized Cheep object, you receive 200 as status code of the HTTP response.