Skip to content

Simplify configuration construction in the API handlers tests

João Pereira requested to merge cleanup-api-test-setup into release/2.8-gitlab

While working on !49 (closed), we found out how repeated the base configuration construction (configuration.Configuration{}) was in registry/handlers/api_test.go.

This MR extracts that repeated code into an utility function that can be reused. This is one of the largest test files, so code reuse is especially important.

Merge request reports