Loading
Test delegation in DAST and token status policy specs
What does this MR do and why?
Adds delegate_to checks to the specs for four DAST policies and two finding token status policies, and drops checks that only re-tested the delegate.
Why
Dast::BranchPolicy,Dast::ProfileSchedulePolicy,Dast::PreScanVerificationPolicy,Dast::PreScanVerificationStepPolicy: these only delegate, so the specs now pin the delegate instead of running the shareda dast on-demand scan policyrole table. The on-demand scan grants come from role YAML, andProjectPolicy's spec covers thesecurity_on_demand_scanslicense gate. The shared example stays for the other specs that use it.Security::FindingTokenStatusPolicy,Vulnerabilities::FindingTokenStatusPolicy: adddelegate_to. Their existing tests cover their ownread_finding_token_statusrule and stay.
References
Screenshots or screen recordings
Not applicable. This MR changes only specs.
How to set up and validate locally
Not applicable. This MR changes only specs.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.