Update a test assertion to make failure easier to understand
This commit is contained in:
parent
e4f43683d4
commit
022fdb9cfd
@ -441,7 +441,7 @@ func runSupervisor(ctx context.Context, podInfo *downward.PodInfo, cfg *supervis
|
||||
dynamicUpstreamIDPProvider := dynamicupstreamprovider.NewDynamicUpstreamIDPProvider()
|
||||
secretCache := secret.Cache{}
|
||||
|
||||
// OIDC endpoints will be served by the oidProvidersManager, and any non-OIDC paths will fallback to the healthMux.
|
||||
// OIDC endpoints will be served by the endpoints manager, and any non-OIDC paths will fallback to the healthMux.
|
||||
oidProvidersManager := endpointsmanager.NewManager(
|
||||
healthMux,
|
||||
dynamicJWKSProvider,
|
||||
|
@ -2547,6 +2547,8 @@ func makeAuthorizationRequestAndRequireSecurityHeaders(ctx context.Context, t *t
|
||||
t.Logf("makeAuthorizationRequestAndRequireSecurityHeaders authorization response: %#v", authorizeResp)
|
||||
t.Logf("makeAuthorizationRequestAndRequireSecurityHeaders authorization response body: %q", body)
|
||||
}
|
||||
require.Less(t, authorizeResp.StatusCode, 400,
|
||||
"expected a successful authorize response, but got a response status indicating an error (see log above)")
|
||||
expectSecurityHeaders(t, authorizeResp, false)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user