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

Tests need support for simulated errors #2164

Open
7 tasks
theunrepentantgeek opened this issue Mar 15, 2022 · 6 comments
Open
7 tasks

Tests need support for simulated errors #2164

theunrepentantgeek opened this issue Mar 15, 2022 · 6 comments
Labels
new-feature test Test refactoring related tasks

Comments

@theunrepentantgeek
Copy link
Member

We should cover various corner cases being able to inject certain failures. Some of this should be achievable using our existing envtest + recording framework and some may need some additional framework updates.

Ideas:

  • DeploymentAlreadyExists when we attempt to create it?
  • InternalServerError for a period of time from a service.
  • "Create" a resource that the operator doesn't know about but which already exists.
  • Deployment fails after some polling due to 5xx error.
  • Throttling from a service.
  • Simulated errors saving changes to spec or status (kube-apiserver instability)
  • Simulated loss of entire status

Originally logged as #1726 by @matthchr

@matthchr
Copy link
Member

This is still true and something we should investigate further

@matthchr
Copy link
Member

No status change from above, although a lot of this can be covered with our existing unit tests so the need isn't urgent.

@theunrepentantgeek
Copy link
Member Author

Still something we want to do.

@matthchr
Copy link
Member

Still something we want to do, I have some ideas about how we could do this related to the "manually pump the reconciler" tests that I saw while helping with Karpenter.

@matthchr
Copy link
Member

matthchr commented Apr 8, 2024

No change from above

@matthchr matthchr added the test Test refactoring related tasks label Apr 8, 2024
@theunrepentantgeek
Copy link
Member Author

Would be nice to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature test Test refactoring related tasks
Projects
Development

No branches or pull requests

2 participants