Skip to content

Tests need support for simulated errors #2164

Description

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 Matthew Christopher (@matthchr)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good-for-copilot 🤖An issue that is a good candidate for implementation by AInew-featuretestTest refactoring related tasks

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions