add SAN to default cert in supervisor_discovery_test.go

This commit is contained in:
Ryan Richard
2024-11-04 17:34:53 -08:00
parent febbee347b
commit fedb9812bd
4 changed files with 93 additions and 49 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ type TestOIDCUpstream struct {
}
// InferSupervisorIssuerURL infers the downstream issuer URL from the callback associated with the upstream test client registration.
func (e *TestEnv) InferSupervisorIssuerURL(t *testing.T) SupervisorIssuer {
func (e *TestEnv) InferSupervisorIssuerURL(t *testing.T) *SupervisorIssuer {
t.Helper()
supervisorIssuer := NewSupervisorIssuer(t, e.SupervisorUpstreamOIDC.CallbackURL)
require.True(t, strings.HasSuffix(supervisorIssuer.issuerURL.Path, "/callback"))