-
Notifications
You must be signed in to change notification settings - Fork 69
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
failedTemplate
error not exists or not selected in test suite
#70
Comments
+1 i am having the same problem when using istio 1.3.3 as dependent chart. it works with istio 1.4.8. interestingly enough, |
Thanks for the update. I'm currently working on a fix regarding this issue. Seems that failing validations within template files (e.g. _helpers.tpl) have a different result in Helm3 than in Helm2. A workaround could be by preventing the failure to come, using predefined values 😁 |
@quintush thanks for the quick reply!
interestingly enough, helm3 also complains about the |
Thanks for the additional details. |
After seeing the code, i noticed that the and is positioned wrong.
Similar setup is created in one of the samples in the unittest plugin. Greetings, |
@quintush yes and no, i would say. :) generally, my expectation towards so, yes, changing the syntax on the above example makes the unittests work. however, cheers, |
@quintush some more thoughts below. as far as i understood from the code of some ideas:
cheers |
Hello @jonastr , Indeed the helm unittest is deferring templating to helm libraries. I wanted to use the rendering from Helm itself as much as possible, as some template functions are only available within Helm, which otherwise needed to be developed separatly in the helm-unittest. Currently i use the following versions to render the helm charts: So i will update to the latest versions to verify if it will solve the error. Greetings, |
hi @quintush, yeah, deferring makes a lot of sense to me as well. i wasn't aware though that unittest would eventually use a different version of helm libraries than the version of helm installed. for example, i am using helm version v2.16.3 here. so that's actually an older version and templating works fine. this could imply that a bug has been introduced in newer versions of helm ;) to get consistent results, it would make sense to me to always use the same version. i therefore wonder if it'd be easily doable to change helm unittest such that it defers templating to the installed version of helm - rather than tying it to a specific version of helm used during build time of helm unittest. if we can confirm/reject that this error is related to the current helm version used in helm unittest, we know better how to fix it. :) cheers, |
But what about the |
Hi
I have a test which I'm trying to test that it is failing with
This is my
_helpers.tpl
:This is my test:
As you can see, all I try to check is that I get the error from the template, but I keep getting this error:
Any reason why it could happen and how can I resolve it?
Thanks
The text was updated successfully, but these errors were encountered: