-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restrict assert with apiVersion/kind to only relevant objects #86
Comments
@gpaul I don't believe I understand enough context here... could you provide a simple setup.yaml and an assert.yaml with an expectation of what should pass and what should fail? or explain a bit more please? also... great to hear from you!! |
Hey :-) Sure, so I have the following assert.yaml:
That assertion failed in my test. Which is fine. Now I want to debug it. In the kuttl output, I see:
Notice that the error output shows a comparison between the This ticket is about not printing the comparison between the expected object with objects of a different apiVersion and Kind. If the user sets a specific apiVersion/kind in the assert, odds are they're not interested in or surprised by the fact that the asserted object doesn't match objects of a completely different kind. |
I believe this was fixed by #488 |
What would you like to be added:
When I specify an assert step and specify the
apiVersion
andkind
fields on my assert object, then my object should only be compared against objects of the samekind
.For example, the following assert failure output is noisy and pretty useless:
Note that
involvedObject
expects atekton.dev/v1alpha1.PipelineRun
:but is compared to a
v1.Pod
:I don't think there are valid scenarios where this could be valuable information.
Why is this needed:
The log output is extremely verbose when there are many objects and an assert fails.
The text was updated successfully, but these errors were encountered: