https://github.com/chlab/helmunittest-skipemptytemplates
Reproduction of skipEmptyTemplates bug
https://github.com/chlab/helmunittest-skipemptytemplates
Last synced: over 1 year ago
JSON representation
Reproduction of skipEmptyTemplates bug
- Host: GitHub
- URL: https://github.com/chlab/helmunittest-skipemptytemplates
- Owner: chlab
- License: mit
- Created: 2025-03-19T09:28:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-19T09:46:18.000Z (over 1 year ago)
- Last Synced: 2025-03-19T10:25:38.080Z (over 1 year ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Helm Unittest Bug Reproduction
This repo is a minimal reproduction of a suspected bug with the `skipEmptyTemplates` option of the `documentSelector` functionality of [helm unittest](https://github.com/helm-unittest/helm-unittest).
To reproduce, run `helm unittest . -f tests/test-external-secrets.yaml`. The tests should pass. Then, delete `templates/external-secrets.yaml` and rerun the tests. They now fail with the following notice:
```
Expected to equal:
Owner
Actual:
no manifest found
```
It seems to me that skipEmptyTemplates works, as long as one template is found that fulfills the assertions. If none are found, it fails with "no manifest found".
Expected: the test passes if no templates are found and `skipEmptyTemplates` is `true`.
Tested with version 0.8.0