From 3dd1cee331b8d0beb84e2f92481183520939213a Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 24 Sep 2019 19:12:56 +0200 Subject: Test more reserved usernames (#8263) * Test more reserved usernames * Add more reserved usernames, sort them * Reserve "attachments" username (is a used route) * It's "avatars" being reserved, not "avatar" --- integrations/user_test.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'integrations/user_test.go') diff --git a/integrations/user_test.go b/integrations/user_test.go index 6d67927d16..0a6fdd19d5 100644 --- a/integrations/user_test.go +++ b/integrations/user_test.go @@ -74,9 +74,22 @@ func TestRenameReservedUsername(t *testing.T) { prepareTestEnv(t) reservedUsernames := []string{ + "admin", + "api", + "attachments", + "avatars", + "explore", "help", - "user", + "install", + "issues", + "login", + "metrics", + "notifications", + "org", + "pulls", + "repo", "template", + "user", } session := loginUser(t, "user2") -- cgit v1.2.3