Fixing rubocop exceptions no. 7
What does this MR do and why?
Resolves #422558 (closed)
Fixes rubocop exceptions in tests.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
No visible change
How to set up and validate locally
- Check pipeline or run tests locally
Related to #422558 (closed)