-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add TestAssert support for errors files #457
Conversation
Signed-off-by: Israel Blancas <[email protected]>
I am not sure if I fully understand the motivation for this PR. Will a |
The fix provided as part of this PR was motivated by this thread in Slack. Somebody tried to do this in a apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 300
---
apiVersion: v1
kind: Service
metadata:
name: gitea-http
namespace: gitea
---
apiVersion: v1
kind: Pod
metadata:
name: gitea-0
namespace: gitea
--- And kuttl fails with the following error:
So, instead of interpreting the |
Thanks for the pointer, I remember the thread now. I personally think a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @erikgb that this is not strictly necessary, but it's a papercut that can be easily avoided. I like this change because it brings about nice symmetry to the assert/error behaviour. I.e. now they are the same, except for the negation.
Thanks for also fixing the silent ignoring of all but last encountered TestAssert in a step. Please mention this in the PR description and title so it shows up in the release notes, as technically it's an incompatible change (some suites which contained superfluous TestAssert
obejcts that previously passed will now abort).
It can be solved/workarounded (I don't know if that word is correct). But it is not obvious if you are not too much in kuttl. If it helps people to use kuttl and doesn't break anything, I think it is a good change :D (but I don't have a super strong opinion about adding it). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for elaborating. I think this is good - at least for now.
Signed-off-by: Israel Blancas [email protected]
Fixes #456