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 shared a dast on-demand scan policy role table. The on-demand scan grants come from role YAML, and ProjectPolicy's spec covers the security_on_demand_scans license gate. The shared example stays for the other specs that use it.
  • Security::FindingTokenStatusPolicy, Vulnerabilities::FindingTokenStatusPolicy: add delegate_to. Their existing tests cover their own read_finding_token_status rule 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.

Merge request reports

Loading
Loading