Skip to content

Commit 74de393

Browse files
test(e2e): ouroboros fold + CSI/NFS ordering + OIDC keycloakInternalUrl (#2728)
## What this PR does Bundles four independent e2e improvements lifted from #2619: 1. **`test(e2e): fold ouroboros assertions into kubernetes-latest`** — moves the standalone `hack/e2e-apps/ouroboros.bats` (which provisioned its own full Kamaji control plane, ~25m) into the existing `kubernetes-latest` run as an optional addon. The assertions cover ouroboros HR Ready, controller pod Running, `Ingress → coredns-custom` rewrite-line injection, and end-to-end DNS resolution from inside the tenant. Reuses the existing tenant cluster instead of building a second one. 2. **`test(e2e): wait for tenant CSI HR Ready before NFS test`** — explicit `kubectl wait hr/kubernetes-${test_name}-csi --for=condition=ready` ahead of the NFS pod. Otherwise the NFS pod schedules while the `kubevirt-csi-node` DaemonSet is still rolling out, eats ~1m on `FailedAttachVolume` retries, and trips the pod-Succeeded wait. 3. **`test(e2e): bump NFS pod wait to 10m to fit slow-path chain`** — was 5m. With dependencies properly serialized (per #2), 5m was tight on slow runners; 10m gives the chain genuine room without masking real bugs. 4. **`test(e2e): set keycloakInternalUrl when enabling OIDC`** — the dashboard gatekeeper (oauth2-proxy) does OIDC discovery against the keycloak Service URL; without an explicit `keycloakInternalUrl`, it falls back to the public ingress URL which isn't routable from inside the cluster yet during install. ## Origin All four commits lifted unchanged from #2619. ### Release note ```release-note NONE ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Integrated Ouroboros validations into the main Kubernetes end-to-end flow (removed separate standalone Ouroboros test) * Added hairpin-NAT and in-tenant DNS resolution checks for Ouroboros scenarios * Improved Keycloak OIDC test by configuring an in-cluster internal URL * Increased various timeouts and readiness waits and added tenant CSI readiness gating to improve test reliability <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/cozystack/cozystack/pull/2728?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 6b76db6 + ea7a8c8 commit 74de393

4 files changed

Lines changed: 168 additions & 395 deletions

File tree

‎hack/e2e-apps/kubernetes-latest.bats‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22

33
@test "Create a tenant Kubernetes control plane with latest version" {
44
. hack/e2e-apps/run-kubernetes.sh
5-
run_kubernetes_test 'keys | sort_by(.) | .[-1]' 'test-latest-version' '59991'
5+
# 4th arg = enable_ouroboros: folds the standalone ouroboros.bats's
6+
# hairpin-NAT reconciliation assertions onto this cluster instead of
7+
# spinning up a second ~25m Kamaji bringup.
8+
run_kubernetes_test 'keys | sort_by(.) | .[-1]' 'test-latest-version' '59991' 'true'
69
}

‎hack/e2e-apps/ouroboros.bats‎

Lines changed: 0 additions & 386 deletions
This file was deleted.

0 commit comments

Comments
 (0)