Skip to content

Improve Gitlab::Database::Partitioning tests

What does this MR do and why?

This MR updates Gitlab::Database::Partitioning tests:

  • setup state using Gitlab::Database::Partitioning.registered_models
  • move the responsibility to ensure that the registered models have partitioning strategy to register_models
  • make sure we do not leak state outside tests

Related to #343955 (closed).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #343955 (closed)

Merge request reports