Increase code coverage of DeployToken to 100%, and make sure all nullable fields have tests

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

gitlab-org/release/retrospectives#1 (closed) describes an incident with deploy tokens that was partially caused by a lack of proper code coverage, and specifically data coverage as in this case a nullable column had no tests for when the value was null.

We should make sure that the code coverage of DeployToken is 100% in both CE and EE, and that any column that can be NULL has tests for that case.

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading