Organise security policies integration tests mocks
What does this MR do and why?
Small refactoring of integration tests mocks in order to DRY it out
EE: true
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
***NO VISUAL CHANGES***
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Checkout branch
-
Run in terminal:
yarn jest:integration --watch
-
Then click p and
ee/spec/frontend_integration/security_orchestration
Related to #488668 (closed)