From 9d0f6329776dd9c02114cee4016076f1f3aa0687 Mon Sep 17 00:00:00 2001 From: Ikuyo Date: Tue, 23 Jul 2024 08:18:20 +0500 Subject: [PATCH 1/3] Reserve devtest username (cherry picked from commit 93d083624125cdcb51769cefe781756b5ed4b760) --- models/user/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/user/user.go b/models/user/user.go index ff85c2cfa0..3123a28e37 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -545,6 +545,7 @@ var ( "captcha", "commits", "debug", + "devtest", "error", "explore", "favicon.ico", From 422fe112716940220537e084c24749b491b73280 Mon Sep 17 00:00:00 2001 From: Ikuyo Date: Tue, 23 Jul 2024 08:38:55 +0500 Subject: [PATCH 2/3] Add devtest in reserved usernames test (cherry picked from commit 90c0e9dace0dcf837a5cf07a19ef782ba5b2e5c0) --- tests/integration/user_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/user_test.go b/tests/integration/user_test.go index 3a3932bdc2..4832503f16 100644 --- a/tests/integration/user_test.go +++ b/tests/integration/user_test.go @@ -110,6 +110,7 @@ func TestRenameReservedUsername(t *testing.T) { "captcha", "commits", "debug", + "devtest" "error", "explore", "favicon.ico", From 19dd7e9ebc97d2d9a709565f525f23921322c41f Mon Sep 17 00:00:00 2001 From: Ikuyo Date: Tue, 23 Jul 2024 11:04:57 +0500 Subject: [PATCH 3/3] Add missing trailing comma (cherry picked from commit 859cc23dc2b79e6ddbdbceb39e47c81fbbc46ad4) --- tests/integration/user_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/user_test.go b/tests/integration/user_test.go index 4832503f16..95882e5ff3 100644 --- a/tests/integration/user_test.go +++ b/tests/integration/user_test.go @@ -110,7 +110,7 @@ func TestRenameReservedUsername(t *testing.T) { "captcha", "commits", "debug", - "devtest" + "devtest", "error", "explore", "favicon.ico",