1
0
mirror of https://gitea.com/gitea/helm-chart synced 2025-10-06 00:43:12 +02:00
Files
helm-chart/unittests/helm/ingress/implicit-defaults.yaml
2025-05-05 11:06:52 +02:00

24 lines
618 B
YAML

suite: Test ingress with implicit path defaults
templates:
- templates/gitea/ingress.yaml
tests:
- it: should use default path and pathType when no paths are specified
set:
ingress.enabled: true
ingress.hosts:
- host: git.example.com
asserts:
- hasDocuments:
count: 1
- isKind:
of: Ingress
- equal:
path: spec.rules[0].host
value: "git.example.com"
- equal:
path: spec.rules[0].http.paths[0].path
value: "/"
- equal:
path: spec.rules[0].http.paths[0].pathType
value: "Prefix"