Currently, we have no way to add end-to-end tests, as this would require setting a UCSB API key during testing.
Implementation Details
In order to create end-to-end tests, we need to integrate a wiremock server that we can stub with an API response. Some examples of this should be present under here. From there, demonstrate it by adding an end to end test that creates a review.
Implementation Notes
- In my option, the easiest way to go about this would be to set a configurable application property for the base UCSB dining API endpoint. If you want to wrap all of the services into using the same RestTemplate for that, that's fine.
- This should be a separate wiremock server from the one running the Oauth stubs. Therefore, they should not share a port.
- From there, add an end to end test creating a review.
Currently, we have no way to add end-to-end tests, as this would require setting a UCSB API key during testing.
Implementation Details
In order to create end-to-end tests, we need to integrate a wiremock server that we can stub with an API response. Some examples of this should be present under here. From there, demonstrate it by adding an end to end test that creates a review.
Implementation Notes