Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into SANDBOX-554
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryzak committed May 1, 2024
2 parents 67082ca + 4b69820 commit e729c5a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion controllers/usersignup/usersignup_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3932,7 +3932,12 @@ func TestUsernameWithForbiddenPrefix(t *testing.T) {
require.Len(t, config.Users().ForbiddenUsernamePrefixes(), 5)
names := []string{"-Bob", "-Dave", "Linda", ""}

for _, prefix := range config.Users().ForbiddenUsernamePrefixes() {
testingPrefixes := config.Users().ForbiddenUsernamePrefixes()
// As 'kube' is already a forbidden prefix, so "kubesaw" is covered
// but testing it explicitly would prevent future changes from breaking this behavior.
testingPrefixes = append(testingPrefixes, "kubesaw")

for _, prefix := range testingPrefixes {
userSignup := commonsignup.NewUserSignup(
commonsignup.ApprovedManually(),
commonsignup.WithTargetCluster("east"))
Expand Down

0 comments on commit e729c5a

Please sign in to comment.