From 421dc2a0a799a79fbb8a09af49dad9f6d1dcccda Mon Sep 17 00:00:00 2001 From: Andrey Kolkov Date: Thu, 19 Nov 2026 20:44:54 +0700 Subject: [PATCH] test(dashboard): require the exact hint in the e2e redirect check The case pattern *kc_idp_hint=e2e-idp* also accepted e2e-idp-other and xkc_idp_hint=e2e-idp. Match the parameter as a whole: preceded by &, followed by & or the end of the URL. Assisted-By: LLM Signed-off-by: Andrey Kolkov --- hack/e2e-install-cozystack.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/e2e-install-cozystack.bats b/hack/e2e-install-cozystack.bats index ff2b128ab..4fadd7316 100644 --- a/hack/e2e-install-cozystack.bats +++ b/hack/e2e-install-cozystack.bats @@ -386,7 +386,7 @@ wait "$pf_pid" 2>/dev/null || true case "$hinted" in - https://keycloak.example.org/realms/cozy/protocol/openid-connect/auth\?*kc_idp_hint=e2e-idp*) ;; + https://keycloak.example.org/realms/cozy/protocol/openid-connect/auth\?*\&kc_idp_hint=e2e-idp\&*|https://keycloak.example.org/realms/cozy/protocol/openid-connect/auth\?*\&kc_idp_hint=e2e-idp) ;; *) echo "=== /oauth2/start?kc_idp_hint=e2e-idp did not redirect to the cozy realm with the hint ===" echo "Location: ${hinted:-}"