forked from kudobuilder/kuttl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message for test assertions (kudobuilder#380)
* Bump controller-runtime to pick up a fake client fix. We need [this commit](kubernetes-sigs/controller-runtime@3a037ef) for the subsequent changes which invoke List() on the fake client. * Improve error message for error assertions and add test. In the test cases for multiple objects we're using NewV1Pod, which returns an actual Pod struct, rather than NewPod (which returns an Unstructured). This is because the fake client is unable to List() pods which were supplied to builder as Unstructureds. Instead it errors out with: item[0]: can't assign or convert unstructured.Unstructured into v1.Pod Co-authored-by: Ken Sipe <kensipe@gmail.com> Signed-off-by: Marcin Owsiany <porridge@redhat.com> Signed-off-by: Israel Blancas <iblancasa@gmail.com>
- Loading branch information
Showing
4 changed files
with
71 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
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
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