Skip to content

Add Integration Tests, Dev Environment & Switch to kr8s#10

Merged
BonySmoke merged 1 commit intomainfrom
add/integration-tests
Feb 18, 2026
Merged

Add Integration Tests, Dev Environment & Switch to kr8s#10
BonySmoke merged 1 commit intomainfrom
add/integration-tests

Conversation

@BonySmoke
Copy link
Contributor

What does this change resolve?

  • Add integration tests for all scenarios from the examples folder, as well as failed cases. They don't cover absolutely everything, but serve as a good base for reliability
    • Also update some examples for compatibility with the latest versions of NetBox, as well as for easier lookups in the tests
  • Add a Makefile command to prepare a development environment
    • Create a Kind cluster
    • Deploy NetBox (unfortunately, I couldn't proceed with NetBox 4.5.0+ because it introduces API tokens v2 that are not yet well supported by the NetBox helm chart)
    • Build the operator image and deploy the operator chart with it
  • Switch from pykube to kr8s as it looks more feature-rich and natural to use, e.g., it can apply YAML from files, which was essential for writing integration tests
  • Upgrade all packages to the latest versions
  • Update documentation

@github-actions
Copy link

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  app
  kubernetes.py
Project Total  

This report was generated by python-coverage-comment-action

@BonySmoke BonySmoke merged commit c95f362 into main Feb 18, 2026
5 checks passed
@BonySmoke BonySmoke deleted the add/integration-tests branch February 18, 2026 11:52
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.

5 participants