Skip to content
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

Write unit tests with helm template #308

Closed
yuvipanda opened this issue Dec 2, 2017 · 3 comments
Closed

Write unit tests with helm template #308

yuvipanda opened this issue Dec 2, 2017 · 3 comments

Comments

@yuvipanda
Copy link
Collaborator

https://github.com/technosophos/helm-template is a helm plugin that renders kubernetes objects from a helm chart + values files. We can use this to write unit tests that validate that a given YAML values file is actually valid & produces configmap / deployment entries as we want.

@yuvipanda
Copy link
Collaborator Author

So for each test, we'd have:

  1. an input config.yaml file
  2. It'll run through helm template
  3. It'll parse the output YAML from helm template and validate that a subset of it does the things we want.

We could also only specifically test individual templates, which might be faster and easier.

@consideRatio
Copy link
Member

I've added this in #758, but currently only for a single config.yaml file.

@consideRatio
Copy link
Member

Fixed by #844, refactored from #758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants