-
Notifications
You must be signed in to change notification settings - Fork 246
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
Handle flat arrays from jsonpath in contains assert #228
base: main
Are you sure you want to change the base?
Conversation
I was able to reproduce my issue in this MR:
|
@quintush I've played a bit with the implementation in my draft and I got a bit stuck deciding what I actually trying to achieve :) I started off convinced that path:
What do you think? I short reply is enough. I am just trying to decide if I should put more effort in this draft poking-around MR or simply drop it. |
I recently tried to write a test that checks if a particular volume name appears in the deployment manifest. Here is a simplified version of my template:
Here is the test I was trying:
To which I got an error saying:
spec.template.spec.volumes[*].name
seems like a valid jsonpath to me, so I would expect it to return an array of volume names andcontains
should be able to apply the assert. But this does not seem to be the case, which is surprising.With this MR I am trying to add support for my use case if this makes sense?