feat(new): gateway api support
check-and-test / check-and-test (pull_request) Successful in 39s

This commit is contained in:
2026-07-04 12:30:38 -04:00
parent 0bdf8c789d
commit 84349e6385
9 changed files with 286 additions and 0 deletions
@@ -0,0 +1,19 @@
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: "/"