opendatahub-io / model-registry-operator

Apache License 2.0
3 stars 17 forks source link

Add unit test for controller #17

Closed dhirajsb closed 10 months ago

dhirajsb commented 10 months ago

Is your feature request related to a problem? Please describe. Kubebuilder scaffold added a test to create a k8s test environment, but a unit test has to be written to create a CR and validate reconciliation.

Describe the solution you'd like Write a simple unit test to validate that CR can be reconciled and required k8s resources for MR service are created by the controller.

Describe alternatives you've considered None.

Additional context See: https://book.kubebuilder.io/cronjob-tutorial/writing-tests