mirror of
https://gitea.com/gitea/helm-chart
synced 2025-10-05 16:32:41 +02:00
Restore adjusted actions config related tests
Signed-off-by: justusbunsi <sk.bunsenbrenner@gmail.com>
This commit is contained in:
24
unittests/helm/config/actions-config.yaml
Normal file
24
unittests/helm/config/actions-config.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
Reference in New Issue
Block a user