From e104cbad10bbea1ddac3838f381c8965ca96491a Mon Sep 17 00:00:00 2001 From: youngwendy Date: Fri, 12 Apr 2024 18:46:40 +0800 Subject: [PATCH] chore: fix function names in comment Signed-off-by: youngwendy --- controllers/api/user_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/api/user_test.go b/controllers/api/user_test.go index 302b7d6d..a65ad53b 100644 --- a/controllers/api/user_test.go +++ b/controllers/api/user_test.go @@ -168,7 +168,7 @@ func TestUnauthorizedListUsers(t *testing.T) { } } -// TestUnauthorizedModifyUsers verifies that users without ModifySystem +// TestUnauthorizedGetUser verifies that users without ModifySystem // permission (a "standard" user) can only get or modify their own information. func TestUnauthorizedGetUser(t *testing.T) { testCtx := setupTest(t) @@ -187,7 +187,7 @@ func TestUnauthorizedGetUser(t *testing.T) { } } -// TestUnauthorizedModifyRole ensures that users without the ModifySystem +// TestUnauthorizedSetRole ensures that users without the ModifySystem // privilege are unable to modify their own role, preventing a potential // privilege escalation issue. func TestUnauthorizedSetRole(t *testing.T) {