Files
helm-gitea/unittests/helm/httproute/implicit-defaults.yaml
T
williamp 84349e6385
check-and-test / check-and-test (pull_request) Successful in 39s
feat(new): gateway api support
2026-07-04 12:30:38 -04:00

20 lines
535 B
YAML

suite: Test httproute with implicit path defaults
templates:
- templates/gitea/httproute.yaml
tests:
- it: should use default path and pathType when no paths are specified
set:
gateway.httpRoute.enabled: true
gateway.httpRoute.paths: []
asserts:
- hasDocuments:
count: 1
- isKind:
of: HTTPRoute
- equal:
path: spec.rules[0].matches[0].path.type
value: "PathPrefix"
- equal:
path: spec.rules[0].matches[0].path.value
value: "/"