Skip to content

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.

@jstudler jstudler self-requested a review June 19, 2025 08:48
Copy link
Collaborator

@jstudler jstudler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works great! Thanks for finding this trick, didn't think of it before...

@bruelea bruelea merged commit 63d4567 into main Jun 19, 2025
11 checks passed
@jstudler jstudler deleted the feature/add-clean-up-to-e2e-test branch July 15, 2025 06:14
vaishutin pushed a commit to vaishutin/netbox-operator that referenced this pull request Aug 17, 2025
…ce (netbox-community#321)

* add clean up to first test

* add clean up to all tests

* Add a few notes on how to work with tests

---------

Co-authored-by: Joel Studler <joel.studler@swisscom.com>
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.

3 participants