forked from red-hat-storage/ocs-operator
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: use fake objects provided by the fake client
The fake client stores the objects after adding a resource version to them. This is a breaking change introduced in kubernetes-sigs/controller-runtime#1306. Therefore we cannot use the fake object that we provided as input to the the fake client and should use the object obtained from the Get operation. The helper function returns the objects after obtaining them from the fake client and therefore these objects cannot be used for create functions. Signed-off-by: Raghavendra Talur <raghavendra.talur@gmail.com>
- Loading branch information
1 parent
dee571f
commit d9a5495
Showing
1 changed file
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters