The `templates/gitea` subdirectory did not group anything meaningful, since every template of this chart belongs to Gitea. It only duplicated the chart name in every path and forced the unit tests to spell out `templates/gitea/<name>.yaml`, while `_helpers.tpl` and `NOTES.txt` already lived directly in `templates`. All templates now live in `templates`, which matches the layout of the bundled sub-charts and the Helm defaults. The checksum helper in `templates/_secrets.tpl` built its include path from `$root.Template.BasePath` and therefore carried the subdirectory in a `printf` format string instead of a literal path. Without adjusting it the chart failed to render with "no template gitea/templates/gitea/secret_config.yaml associated with template gotpl". Co-authored-by: Copilot <copilot@github.com>
25 lines
654 B
YAML
25 lines
654 B
YAML
suite: config template | actions config
|
|
release:
|
|
name: gitea-unittests
|
|
namespace: testing
|
|
templates:
|
|
- templates/secret_inlineConfig.yaml
|
|
tests:
|
|
- it: "actions are enabled by default (based on vanilla Gitea behavior)"
|
|
template: templates/secret_inlineConfig.yaml
|
|
asserts:
|
|
- documentIndex: 0
|
|
notExists:
|
|
path: stringData.actions
|
|
|
|
- it: "actions can be disabled via inline config"
|
|
template: templates/secret_inlineConfig.yaml
|
|
set:
|
|
gitea.config.actions.ENABLED: false
|
|
asserts:
|
|
- documentIndex: 0
|
|
equal:
|
|
path: stringData.actions
|
|
value: |-
|
|
ENABLED=false
|