chore(helm): add unit tests for helm chart (#6557)

This PR adds a minimum set of Helm tests for the Helm chart.
It's heavily based on the approach in [1], but uses a golden-files-based approach instead.
It also runs helm template directly instead of importing the entire Kubernetes API.
Golden files can be updated by running go test ./helm/tests -update or by running make update-golden-files.

[1] https://github.com/coder/enterprise-helm

Fixes #6552
This commit is contained in:
Cian Johnston
2023-03-13 13:48:44 +00:00
committed by GitHub
parent 179d9e0d24
commit 9b2abf0952
13 changed files with 523 additions and 7 deletions
+1
View File
@@ -30,6 +30,7 @@ site/playwright-report/*
# Make target for updating golden files.
cli/testdata/.gen-golden
helm/tests/testdata/.gen-golden
# Build
/build/