Since we have refactored our CSVDatabase and deployed a CSVDBService, we need to refactor our current tests to fit the new solution.
Acceptance criteria:
[x] Make unit tests fit to our new architecture.
[x] Make integration tests fit to our new architecture.
[x] Make end2end tests fit to our new architecture.
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.
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.