You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! First of all I just want to say I'm really impressed and enjoying this plugin :)
I'm fairly new to Helm in general. I've created a namedTemplate which is used in another yaml file in my chart using the include keyword.
I want to test the namedTemplate in isolation - is this possible?
I understand that a namedTemplate itself does not generate any output, and am also aware I could test this via the calling yaml; I'm mainly curious whether testing my namedTemplate by itself is possible.
A simple example below:
# NamedTemplate{{- define "testNamedTemplate" -}}key: {{ .Values.testValue }}{{- end -}}
Hey! First of all I just want to say I'm really impressed and enjoying this plugin :)
I'm fairly new to Helm in general. I've created a namedTemplate which is used in another yaml file in my chart using the include keyword.
I want to test the namedTemplate in isolation - is this possible?
I understand that a namedTemplate itself does not generate any output, and am also aware I could test this via the calling yaml; I'm mainly curious whether testing my namedTemplate by itself is possible.
A simple example below:
the above test will give me the error "asserts[0] equal fail".
My "fix" for this right now is to create a file in my chart called testNamedTemplate.include.yaml which is only used for tests, which looks like this:
Hopefully this makes sense and isn't too dumb of a question :)
The text was updated successfully, but these errors were encountered: