Explorar o código

Add missing test case.

Mariano Cano %!s(int64=6) %!d(string=hai) anos
pai
achega
3246a3e81f
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      authority/provisioner/provisioner_test.go

+ 7 - 0
authority/provisioner/provisioner_test.go

@@ -109,6 +109,13 @@ func TestDefaultIdentityFunc(t *testing.T) {
 				identity: &Identity{Usernames: []string{"john", "John@smallstep.com"}},
 				identity: &Identity{Usernames: []string{"john", "John@smallstep.com"}},
 			}
 			}
 		},
 		},
+		"ok symbol": func(t *testing.T) test {
+			return test{
+				p:        &OIDC{},
+				email:    "John+Doe@smallstep.com",
+				identity: &Identity{Usernames: []string{"john_doe", "John+Doe", "John+Doe@smallstep.com"}},
+			}
+		},
 	}
 	}
 	for name, get := range tests {
 	for name, get := range tests {
 		t.Run(name, func(t *testing.T) {
 		t.Run(name, func(t *testing.T) {