Skip to content

Refactor test_zone tests to make them run independently#640

Merged
otc-zuul[bot] merged 2 commits into
mainfrom
refactor-test-zone
Apr 6, 2026
Merged

Refactor test_zone tests to make them run independently#640
otc-zuul[bot] merged 2 commits into
mainfrom
refactor-test-zone

Conversation

@shhovhan
Copy link
Copy Markdown
Contributor

@shhovhan shhovhan commented Apr 3, 2026

Summary

This PR refactors the DNS functional tests to make them fully independent and resilient to resource quota limits.

Key Improvements

  1. Test Independence
  2. Removed shared state across tests (e.g. class-level networks)
  3. Each test now creates and manages its own resources
  4. Tests no longer depend on execution order
  5. Robust Cleanup in tearDown()
    • Ensures cleanup always runs using try/finally
    • Deletes resources in reverse order for safety
    • Adds new cleanup method for deleting routers that are not removed for any reason to avoid Quota exceeded errors

Result

  1. Tests can now run independently and in any order
  2. Significantly reduced risk of quota exhaustion
  3. Improved stability in CI environments
  4. More accurate validation of real system behavior

@otc-zuul
Copy link
Copy Markdown
Contributor

otc-zuul Bot commented Apr 6, 2026

Build succeeded.
https://zuul.otc-service.com/t/eco/buildset/72d3520961f4458d998e09db0d780cfa

✔️ otc-tox-docs SUCCESS in 10m 16s
✔️ otc-tox-py310 SUCCESS in 4m 18s
✔️ otc-tox-pep8 SUCCESS in 3m 38s
✔️ tox-functional-eu-de SUCCESS in 16m 22s
✔️ otce-upload-image SUCCESS in 5m 54s

@otc-zuul otc-zuul Bot merged commit ac7e62a into main Apr 6, 2026
4 checks passed
@otc-zuul otc-zuul Bot deleted the refactor-test-zone branch April 6, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants