Cover the license_scanning only re-evaluation after the policy timeout
What does this MR do and why?
Adds one spec case to ee/spec/workers/security/scan_result_policies/unblock_pending_merge_request_violations_worker_spec.rb: only a license_scanning violation is running when the policy evaluation timeout fires. It asserts that the worker enqueues Ci::SyncReportsToReportApprovalRulesWorker and SyncMergeRequestApprovalsWorker, and does not enqueue SyncAnyMergeRequestApprovalRulesWorker.
The existing cases covered every rule type skipped at once, or scan_finding alone. This follows the non-blocking review suggestion on !266655 (comment 4143756585).
Spec only, no behaviour change.
Reviewable LOC: 0 (plus 16 in tests)
References
- Follow-up to !266655 (merged)
- Related to #637375 (closed)
Screenshots or screen recordings
Not applicable. Spec only.
How to set up and validate locally
bin/rspec ee/spec/workers/security/scan_result_policies/unblock_pending_merge_request_violations_worker_spec.rbExpect 38 examples, 0 failures.
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.