You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer I would like to run real controller reconcile loop for better testing, i.e. update or full lifecycle
Detailed Description
It would be nice to run controller test with SetupWithManager in addition to the single Reconcile(...) function just one time.
This is a big limitation, as setup-envetest fake Kubernetes cluster already bootstrapped in unit tests but not utilized in integration.
No CR updates can be tested with single Reconcile approach, as well as some features, introduced on the Kubernetes API server level, i.e. metadata Observed value, ObjectRefrence, Finalizers, etc. are not allowed.
Anything else you would like to add:
It would be nice to add real reconcile integration tests inside the controller package in addition to the single Reconcile unit tests and before real e2e tests introduced in #147.
/kind feature
The text was updated successfully, but these errors were encountered:
dmvolod
changed the title
Migrate controllers tests to the real Reconcile loop running with setup-envtest
Add controllers tests for real Reconcile loop running with setup-envtest
Jan 26, 2024
User Story
As a developer I would like to run real controller reconcile loop for better testing, i.e. update or full lifecycle
Detailed Description
It would be nice to run controller test with
SetupWithManager
in addition to the singleReconcile(...)
function just one time.This is a big limitation, as setup-envetest fake Kubernetes cluster already bootstrapped in unit tests but not utilized in integration.
No CR updates can be tested with single
Reconcile
approach, as well as some features, introduced on the Kubernetes API server level, i.e. metadata Observed value, ObjectRefrence, Finalizers, etc. are not allowed.Anything else you would like to add:
It would be nice to add real reconcile integration tests inside the
controller
package in addition to the singleReconcile
unit tests and before real e2e tests introduced in #147./kind feature
The text was updated successfully, but these errors were encountered: