REFACTORING: Use DepResover mock in constroller tests
kuritka opened this issue · 3 comments
kuritka commented
Use DepResover mock instead of settings := provideSettings(t, predefinedConfig)
in constroller tests.
Using the settings object and calling reconcile is no longer sufficient. For example, the function works with k8gb.absa.oss_v1beta1_gslb_cr.yaml
from which it generates a gslb for the tests. Any change to this file will
cause the test to crash. We now have a depressolver mock (and a number of other mocks) that we can use for testing.
somaritane commented
@kuritka what's the status of this one, can we close it?