Update isValidPolicy util to default primary keys
What does this MR do and why?
Describe in detail what your merge request does and why.
Update isValidPolicy util to default primary keys
- move common primary keys into a constants file
- update tests
Changelog: changed
EE: true
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
No visual change
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Navigate to a project => Security & Compliance => Policies => New policy
- Navigate to each policy type and mess around with primary yaml keys and verify rule mode is enabled/disabled
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #396840 (closed)