Skip to content

Update failing change_targetref tests#665

Merged
averevki merged 1 commit intoKuadrant:mainfrom
emmaaroche:update-change-targetref-tests
Apr 26, 2025
Merged

Update failing change_targetref tests#665
averevki merged 1 commit intoKuadrant:mainfrom
emmaaroche:update-change-targetref-tests

Conversation

@emmaaroche
Copy link
Copy Markdown
Contributor

Description

This PR updates the failing change_targetref tests as described in issue #664.

Changes:

  • Solution for now is to add time.sleep(10) to both tests, comments in code explain reasoning. In the future, when issue Investigate smarter waits #660 is addressed, there could be a better solution in place of this.

  • Added has_tls_error() method to testsuite/httpx/__init__.py

  • Updated assertions in testsuite/tests/singlecluster/gateway/reconciliation/change_targetref/test_update_tlspolicy_target_ref.py to use assert response.has_tls_error() instead of directly checking for a specific SSL error message via response.has_error("[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol").

Signed-off-by: emmaaroche <eroche@redhat.com>
@emmaaroche emmaaroche added the refactor Refactor with same functionality label Apr 25, 2025
@emmaaroche emmaaroche self-assigned this Apr 25, 2025
@emmaaroche emmaaroche requested a review from averevki April 25, 2025 13:55
Copy link
Copy Markdown
Contributor

@averevki averevki left a comment

Choose a reason for hiding this comment

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

LGTM. Let's see if this helps

@averevki averevki merged commit 733de32 into Kuadrant:main Apr 26, 2025
3 checks passed
@emmaaroche emmaaroche deleted the update-change-targetref-tests branch April 28, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactor with same functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants