@@ -47,7 +47,10 @@ func (e errCheck) Check(t *testing.T, err error) {
4747 }
4848}
4949
50- const msgLengthValidation = "value length must be at least 1 runes"
50+ const (
51+ msgLengthValidation = "value length must be at least 1 runes"
52+ msgInvalidClientID = `invalid OIDCConfig.ClientId: value contains substring ":"`
53+ )
5154
5255func TestValidateConfig (t * testing.T ) {
5356 tests := []struct {
@@ -64,6 +67,7 @@ func TestValidateConfig(t *testing.T) {
6467 {"multiple-oidc" , "testdata/multiple-oidc.json" , errCheck {is : ErrMultipleOIDCConfig }},
6568 {"invalid-redis" , "testdata/invalid-redis.json" , errCheck {is : ErrInvalidURL }},
6669 {"invalid-oidc-uris" , "testdata/invalid-oidc-uris.json" , errCheck {is : ErrRequiredURL }},
70+ {"invalid-oidc-client-id" , "testdata/invalid-oidc-client-id.json" , errCheck {msg : msgInvalidClientID }},
6771 {"invalid-health-port" , "testdata/invalid-health-port.json" , errCheck {is : ErrHealthPortInUse }},
6872 {"invalid-callback-uri" , "testdata/invalid-callback.json" , errCheck {is : ErrMustNotBeRootPath }},
6973 {"invalid-logout-path" , "testdata/invalid-logout.json" , errCheck {is : ErrMustNotBeRootPath }},
0 commit comments