Skip to content

improve: integration test for PerResourcePollingEventSource delete event propagation#3278

Merged
csviri merged 2 commits intooperator-framework:mainfrom
csviri:fix-onDelete
Apr 8, 2026
Merged

improve: integration test for PerResourcePollingEventSource delete event propagation#3278
csviri merged 2 commits intooperator-framework:mainfrom
csviri:fix-onDelete

Conversation

@csviri
Copy link
Copy Markdown
Collaborator

@csviri csviri commented Apr 8, 2026

Signed-off-by: Attila Mészáros a_meszaros@apple.com

…pagation

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Copilot AI review requested due to automatic review settings April 8, 2026 12:06
@openshift-ci openshift-ci bot requested review from metacosm and xstefank April 8, 2026 12:06
@csviri csviri changed the title improve: integration test for PerResourcePollingEventSource event propagation improve: integration test for PerResourcePollingEventSource delete event propagation Apr 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request improves the integration test for PerResourcePollingEventSource by extending the fetchedAndReconciledMultipleTimes test to verify event propagation behavior when resources are deleted. The test now validates that the polling mechanism correctly handles resource deletion by continuing to poll remaining resources while ceasing to poll deleted ones.

Changes:

  • Added imports for java.time.Duration and POLL_PERIOD constant from the test reconciler
  • Modified test method signature to throw InterruptedException to support Thread.sleep() calls
  • Added pollInterval() configuration to both await() calls for more predictable polling behavior
  • Extended test to verify that after deleting a resource, the polling for that resource stops while other resources continue to be polled

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@csviri csviri merged commit e9053ee into operator-framework:main Apr 8, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants