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 #1726

Closed
2 of 9 tasks
matthchr opened this issue Aug 17, 2021 · 2 comments
Closed
2 of 9 tasks

Tests need support for simulated errors #1726

matthchr opened this issue Aug 17, 2021 · 2 comments

Comments

@matthchr
Copy link
Member

matthchr commented Aug 17, 2021

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 is rejected due to 4xx level error.
  • Deployment is accepted but fails later due to 4xx level error.
  • 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

Remaining issues moved to #2164

@sakthi-vetrivel
Copy link

Need to split into multiple issues across milestones

@theunrepentantgeek
Copy link
Member

Closing to keep a record of completed tests; see #2164 for remaining work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants