mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-03 11:45:45 +00:00
Update a test assertion to make failure easier to understand
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user