Skip to content

Add step to e2e tests to clean up resources in the test NetBox instance #321

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bruelea
Copy link
Collaborator

@bruelea bruelea commented Jun 6, 2025

part of #250

The added step sets the preserveInNetbox field to false and waits until the child resources have status condition 'Ready' true with the expected observedGeneration.

Note: the cleanup of the resources in NetBox only works if the tests succeed. In the future a script can be added that runs when all tests are completed and cleans all resources from NetBox which were created by the tests.

Idea is based on #248.

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

Successfully merging this pull request may close these issues.

1 participant