test(managementapi): cover the limit-blocked namespace (#1823 stack: 2/2)

Summary

  • Problem: the management API refuses writes to a limit-blocked namespace, and no test fails if that stops.
  • Impact: no user impact. A regression in the management write gate would go unnoticed.
  • Change: adds a limit-blocked integration test to the management gating tests, the same shape as the npm and Maven tests in !4012 (merged). It expects the interim namespace suspended 403 until #1823 Part 2 lands the condition gates.
  • Downsides: none. This test was moved out of !4012 (merged) to keep that MR under the 1,000-line Go limit.

It answers dmeshcharakou's request on !4012 for a limit-blocked twin of the management test. It merged after !4012 (merged).

Checklist

  • Ran it: the test only; no behaviour change.
  • Interfaces and data: n/a, test only.
  • Failure: n/a, test only.
  • Rollout: n/a, test only.
  • Hot path: n/a, test only.
  • Database: no migration or query change. The test sets the namespace lifecycle with the existing test helper.
  • Security: no new input, route or permission. The test checks the existing write gate on the management API.
  • ADRs: none govern a test-only change; checked.
  • E2E: none; this is an integration test of an existing gate.
  • Simplicity: keeping it in !4012 (merged) was simpler, but put that MR over the size limit.

Related to https://gitlab.com/gitlab-org/ops/artifact-registry/-/work_items/1823

Edited by Pawel Rozlach

Merge request reports

Loading
Loading