Skip to content

Ensure cleanup in e2e tests #1801

Closed
@lentzi90

Description

@lentzi90

/kind feature

Describe the solution you'd like

We do not currently check if the e2e tests clean up after themselves. I think we should do at least a naive comparison before and after the e2e test suite to see if some resources were forgotten. This will help us find cases where CAPO does not properly delete resources and also makes it safer to run the e2e tests on a "real" OpenStack cloud instead of devstack.

List the resource before and save the result.
List the resource after and compare. Report differences. Perhaps even fail the test if we can get this reliable enough.

Anything else you would like to add:

Listing everything in OpenStack is probably overkill. I imagine we would check something like:

  • servers
  • networks
  • security groups
  • load balancers
  • volumes

Maybe also routers and ports if using pre-existing networks.
I think the check must be before and after the suite (not per test) since multiple tests can run simultaneously.

Metadata

Metadata

Assignees

Labels

help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions