IsScaleTestUser checks if a username indicates it was created for scale testing.
(username, email string)
| 53 | |
| 54 | // IsScaleTestUser checks if a username indicates it was created for scale testing. |
| 55 | func IsScaleTestUser(username, email string) bool { |
| 56 | return strings.HasPrefix(username, ScaleTestPrefix+"-") || |
| 57 | strings.HasSuffix(email, EmailDomain) |
| 58 | } |
| 59 | |
| 60 | // IsScaleTestWorkspace checks if a workspace name indicates it was created for scale testing. |
| 61 | func IsScaleTestWorkspace(workspaceName, ownerName string) bool { |