(t *testing.T)
| 207 | } |
| 208 | |
| 209 | func TestIDPServeSSOStatusErrorCannotSign(t *testing.T) { |
| 210 | test := idpErrNewTest(t) |
| 211 | test.IDP.AssertionMaker = idpcovAssertionMakerFunc(func(*IdpAuthnRequest, *Session) error { |
| 212 | return &StatusError{TopLevel: StatusResponder} |
| 213 | }) |
| 214 | test.IDP.SignatureMethod = "urn:idperr:bogus-signature-method" |
| 215 | w := httptest.NewRecorder() |
| 216 | test.IDP.ServeSSO(w, idpcovSSORequest(t, test)) |
| 217 | assert.Check(t, is.Equal(http.StatusInternalServerError, w.Code)) |
| 218 | } |
| 219 | |
| 220 | func TestIDPServeIDPInitiatedAssertionMakerStatusError(t *testing.T) { |
| 221 | test := idpErrNewTest(t) |
nothing calls this directly
no test coverage detected