Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚠ Fakeclient: Set ResourceVersion when adding objects to the tracker
Currently an object that is added to the tracker will not have a ResourceVersion set. This can lead to tests that should fail with an IsConflict error succeeding when: * The object is added to the tracker * The object allows UnconditionalUpdate, i.E. Update with an empty ResourceVersion that will never conflict * The code under test retrieves such an object and then does an Update for it As this change results in different ResourceVersions for tests it is breaking.
- Loading branch information
1 parent
cf7ac88
commit 51fb3f8
Showing
2 changed files
with
70 additions
and
12 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
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