nais / teams-backend

NAIS teams is a API server for team creation and propagation to external systems.
MIT License
3 stars 0 forks source link

Improve testability for the audit logger #130

Closed christeredvartsen closed 1 year ago

christeredvartsen commented 1 year ago

Currently we are doing quite a lot of mocking of the audit logger. We should create a separate implementation of the audit logger that has some history capabilities, so we can check for logged lines in the tests if needed.

christeredvartsen commented 1 year ago

Also set a default component name of "not specified" when creating the audit logger.