From 4af32e295128812f724728cbd009c4f922cbaebe Mon Sep 17 00:00:00 2001 From: Siegfried Weber Date: Wed, 25 Nov 2026 18:19:01 +0100 Subject: [PATCH] fix(tests): Accept both spellings of the DAG id wildcard --- tests/templates/kuttl/opa/31-opa-rules.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/templates/kuttl/opa/31-opa-rules.yaml b/tests/templates/kuttl/opa/31-opa-rules.yaml index df731327..c9d25e6d 100644 --- a/tests/templates/kuttl/opa/31-opa-rules.yaml +++ b/tests/templates/kuttl/opa/31-opa-rules.yaml @@ -104,9 +104,11 @@ data: is_authorized_dag if { input.method == "GET" input.access_entity == "RUN" - # Airflow maps the `~` wildcard to `None` before it calls the auth - # manager, so the DAG id arrives here as null rather than as "~". - input.details.id == null + # Airflow 3.1.0+ maps the `~` wildcard to `None` before it calls the + # auth manager, so the DAG id arrives here as null, while 3.0.x passes + # `~` through unchanged. See + # https://github.com/apache/airflow/blob/3.1.0/airflow-core/src/airflow/api_fastapi/core_api/security.py#L122 + input.details.id in [null, "~"] input.user.name == "jane.doe" }