Skip to content

Integration test#263

Draft
fwiesel wants to merge 3 commits intomainfrom
integration-test
Draft

Integration test#263
fwiesel wants to merge 3 commits intomainfrom
integration-test

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Mar 12, 2026

No description provided.

fwiesel added 3 commits March 12, 2026 10:12
Split SetupWithManager into two methods for controllers with OpenStack
dependencies: registerWithManager handles only the controller-runtime
registration, while SetupWithManager acquires OpenStack clients first
then delegates to registerWithManager. This allows integration tests
to inject fake OpenStack clients and call registerWithManager directly.
Test all controllers running together in a real ctrl.Manager with
envtest and fake OpenStack HTTP servers. Covers two scenarios:
- SkipTests=true (fast path, ~3s)
- SkipTests=false (full test VM validation, ~60s)

Verifies the complete Node -> Hypervisor -> onboarding -> Ready=True
flow with stateful mock handlers and catch-all failure on unhandled
OpenStack requests.
…tests

Add requeueInterval field to OnboardingController with getRequeueInterval()
fallback to defaultWaitTime (1m) when unset. Integration test sets 1s requeue
interval, reducing test runtime from ~60s to ~15s.
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