vincbeck commented on code in PR #76473:
URL: https://github.com/apache/airflow/pull/76473#discussion_r4601807063


##########
providers/fab/tests/unit/fab/auth_manager/views/test_user.py:
##########
@@ -57,6 +57,24 @@ def user_user_reader(fab_app):
         delete_user(fab_app, "user_user")
 
 
[email protected](scope="module")
+def user_show_and_profile(fab_app):
+    with fab_app.app_context():
+        yield create_user(
+            fab_app,
+            username="user_show_and_profile",
+            role_name="role_show_and_profile",
+            permissions=[
+                (permissions.ACTION_CAN_READ, permissions.RESOURCE_USER),
+                (permissions.ACTION_CAN_READ, permissions.RESOURCE_MY_PROFILE),
+                (permissions.ACTION_CAN_READ, 
permissions.RESOURCE_MY_PASSWORD),

Review Comment:
   Is `RESOURCE_MY_PASSWORD` needed? On userinfo, the "Reset my password" 
visibility is checked against `RESOURCE_MY_PROFILE`, so I think the test passes 
without it.



-- 
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