Add unit tests to gitlab-zoekt helm chart
Problem
The gitlab-zoekt helm chart has no unit tests which allows us to ship trivial bugs in YAML formatting for permutations of configuration that aren't covered by our 1 integration test in CI.
Solution
Look at how unit tests are done in https://gitlab.com/gitlab-org/charts/gitlab and implement something similar. This is using RSpec so this should be familiar to most of us. We should have unit tests that render the helm templates and validate that they are correct YAML. We should have a few permutations of common configuration options like:
- With/without certificate enabled
- With/without load balancer enabled
- With/without annotations for all the things
- Internal API (if it's been merged) gitlab-org/cloud-native/charts/gitlab-zoekt!43 (closed)
Edited by Terri Chu