Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move backend usage cleanup from backend deleting fixture to service f… #913

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkudlej
Copy link
Contributor

@mkudlej mkudlej commented Jan 16, 2025

…ixture + required fixes in tests

@mkudlej mkudlej requested a review from a team as a code owner January 16, 2025 16:59
@mkudlej mkudlej requested review from mdujava and dhlavac and removed request for a team January 16, 2025 17:00
@mdujava
Copy link
Contributor

mdujava commented Jan 17, 2025

Is there a reason why those deletes are not after check for skip_clenup?

@mkudlej
Copy link
Contributor Author

mkudlej commented Jan 20, 2025

  • check testsuite/tests/apicast/policy/rate_limit_headers/test_rate_limit_headers.py - why there is rename to service2

@@ -930,7 +933,8 @@ def finalizer():
hook(svc)
except Exception: # pylint: disable=broad-except
pass

for usage in svc.backend_usages.list():
Copy link
Contributor

Choose a reason for hiding this comment

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

This is reached after backend_usages are deleted, unless order of fixtures is changed in a tests to have backend_usages before service.

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.

2 participants