Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acceptance tests for this service #24

Open
Jumpy-Squirrel opened this issue Jan 13, 2023 · 0 comments
Open

acceptance tests for this service #24

Jumpy-Squirrel opened this issue Jan 13, 2023 · 0 comments

Comments

@Jumpy-Squirrel
Copy link
Contributor

Similar to the acceptance tests in reg-attendee-service, this service should have automated given/when/then tests for its endpoints.

The tests should cover each endpoint with

  • success case
  • bad request cases
  • security tests (if no token is sent, cannot do anything, if not admin cannot do anything, ...)

All tests should live under /test/acceptance, with mocks under /test/mocks so code coverage is correct when collected over /internal.

It is probably easiest to start with all the negative cases.

A recorder mock should be needed for /internal/service/mailsrv only. Just like in the attendee service, the tests can use the inmemory db, load a config file under /test/resources, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant