Files
helm-actions/unittests/helm/01-consistency-checks.yaml
DaanSelen 9a62bad48a
Some checks failed
changelog / changelog (push) Has been cancelled
check-and-test / check-and-test (push) Has been cancelled
refactor: unittests and slightly add QoL (#127)
Reorder the unittests

---------

Co-authored-by: DaanSelen <dselen@systemec.nl>
Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/127
2026-04-09 09:56:30 +00:00

36 lines
1.2 KiB
YAML

suite: actions template | consistency checks
release:
name: gitea-actions-unittests
namespace: testing
templates:
- templates/01-consistency-checks.yaml
tests:
- it: fails when provisioning is disabled BUT existingSecret and existingSecretKey are missing
set:
enabled: true
asserts:
- failedTemplate:
errorMessage: "existingSecret and existingSecretKey are required when provisioning is disabled"
- it: fails when provisioning is disabled BUT existingSecretKey is missing
set:
enabled: true
existingSecret: "my-secret"
asserts:
- failedTemplate:
errorMessage: "existingSecret and existingSecretKey are required when provisioning is disabled"
- it: fails when provisioning is disabled BUT existingSecret is missing
set:
enabled: true
existingSecretKey: "my-secret-key"
asserts:
- failedTemplate:
errorMessage: "existingSecret and existingSecretKey are required when provisioning is disabled"
- it: fails when LOCAL_ROOT_URL is missing
set:
enabled: true
existingSecret: "my-secret"
existingSecretKey: "my-secret-key"
asserts:
- failedTemplate:
errorMessage: "giteaRootURL is required"