Skip to content

Conversation

@CorentinPtrl
Copy link

Fixes #1625

Copilot AI review requested due to automatic review settings December 5, 2025 20:09
Copy link

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 PR fixes the resource pool condition message assertions in E2E tests by replacing exact string matching with a more flexible parsing approach. This change makes the tests more resilient to variations in message formatting and field ordering.

Key Changes:

  • Introduced extractResourcePoolMessage() helper to parse condition messages into structured key-value pairs
  • Added containsAll() helper for order-independent assertion checking
  • Updated six test cases to use the new flexible assertion pattern instead of exact string matching

Copy link
Member

@prometherion prometherion left a comment

Choose a reason for hiding this comment

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

LGTM, worth giving it a try in the ci /cc @oliverbaehler

@oliverbaehler
Copy link
Collaborator

Yeah that will do for now. However this is fighting the snytome, not the cause. I would suspect the ordering is incirrect therefor leading to inconsistent status messages. I will have to refactor the status handling anyway for resourcepools in the upcoming release

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.

e2e test occasionally fail for ResourcePool Scheduling

3 participants