
see #824 Co-authored-by: justusbunsi <justusbunsi@noreply.gitea.com> Co-authored-by: justusbunsi <sk.bunsenbrenner@gmail.com> Reviewed-on: https://gitea.com/gitea/helm-gitea/pulls/825 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.com> Co-authored-by: pat-s <patrick.schratz@gmail.com> Co-committed-by: pat-s <patrick.schratz@gmail.com>
25 lines
633 B
YAML
25 lines
633 B
YAML
suite: config template | actions config
|
|
release:
|
|
name: gitea-unittests
|
|
namespace: testing
|
|
templates:
|
|
- templates/gitea/config.yaml
|
|
tests:
|
|
- it: "actions are enabled by default (based on vanilla Gitea behavior)"
|
|
template: templates/gitea/config.yaml
|
|
asserts:
|
|
- documentIndex: 0
|
|
notExists:
|
|
path: stringData.actions
|
|
|
|
- it: "actions can be disabled via inline config"
|
|
template: templates/gitea/config.yaml
|
|
set:
|
|
gitea.config.actions.ENABLED: false
|
|
asserts:
|
|
- documentIndex: 0
|
|
equal:
|
|
path: stringData.actions
|
|
value: |-
|
|
ENABLED=false
|