stegololz commented on code in PR #61351:
URL: https://github.com/apache/airflow/pull/61351#discussion_r2770175285


##########
providers/keycloak/tests/unit/keycloak/auth_manager/test_keycloak_auth_manager.py:
##########
@@ -366,13 +409,30 @@ def test_is_authorized_invalid_request(self, function, 
auth_manager, user):
                 "Dag#GET",
                 {RESOURCE_ID_ATTRIBUTE_NAME: "test", "dag_entity": 
"TASK_INSTANCE"},
             ],
+            [
+                "GET",
+                DagAccessEntity.TASK_INSTANCE,
+                DagDetails(id="test", team_name="team-a"),

Review Comment:
   test_is_authorized_dag covers the "monotenant" case.  This check 
specifically assert that if a Dag comes with a team in his DagDetails, we will 
keep the check to Dag#GET and not Dag:team-a#GET. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to