cozystack/hack/e2e-apps
Aleksei Sviridkin 8442f4e44e
test(e2e): flip gateway.enabled=true by default and extend gateway.bats
hack/e2e-install-cozystack.bats: add 'gateway: {enabled: true}' to the
values used for the cozystack.cozystack-platform Package. The e2e
pipeline therefore exercises the Gateway API path as its primary
integration scenario — dashboard, keycloak render as HTTPRoutes;
cozystack-api, vm-exportproxy, cdi-uploadproxy render as TLSRoutes;
the legacy Ingresses for those services should not exist.

hack/e2e-apps/gateway.bats: two new test cases.

1. 'exposed services render HTTPRoute/TLSRoute but not Ingress when
   gateway.enabled=true' — waits for the HTTPRoutes for dashboard and
   keycloak to reach Accepted, confirms the three TLSRoutes exist in
   their respective namespaces, and asserts (negative tests) that the
   old Ingress objects are gone. Catches regressions where a developer
   forgets to wrap an Ingress in the gateway-enabled conditional.
2. 'ValidatingAdmissionPolicy rejects Gateway with foreign hostname' —
   tries to apply a Gateway in tenant-test that claims
   dashboard.example.org (a domain outside the tenant's allowed suffix
   test.example.org), asserts kubectl fails with the expected VAP error
   and the expected message.

Together these cover the two most important regressions this PR is
shipping against: Ingress leaking through when it should not, and
the hostname-hijacking defence silently disappearing.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-04-24 17:03:58 +03:00
..
backup.bats.disabled [backups] Add templating of velero backups 2026-01-04 13:31:15 +03:00
bucket.bats [tests] Fix port-forward leak and LB retry off-by-one 2026-03-23 17:33:27 +03:00
clickhouse.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
external-dns.bats feat(extra): add external-dns as standalone extra package 2026-03-10 12:48:01 +01:00
foundationdb.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
gateway.bats test(e2e): flip gateway.enabled=true by default and extend gateway.bats 2026-04-24 17:03:58 +03:00
harbor.bats fix(harbor): include tenant domain in default hostname and add E2E cleanup 2026-02-18 02:07:38 +03:00
kafka.bats [tests] Fix Kafka E2E test timeout and retry race condition 2026-04-08 17:32:50 +03:00
kubernetes-latest.bats [ci] Refactor testing logic 2025-07-23 14:00:24 +03:00
kubernetes-previous.bats [ci] Refactor testing logic 2025-07-23 14:00:24 +03:00
mariadb.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
mongodb.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
openbao.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
postgres.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
qdrant.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
redis.bats [tests] Add pre-cleanup, fix port-forward race, fix temp leak 2026-03-23 17:25:01 +03:00
run-kubernetes.sh [tests] Fix: remove EXIT trap that broke successful kubernetes tests 2026-03-24 21:30:06 +03:00
vminstance.bats [tests] Fix review findings: vminstance pre-cleanup, indentation, --ignore-not-found 2026-03-23 17:42:23 +03:00