Skip to content

Add Basic WireMock Set for End2End Tests #113

Description

@Division7

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions