(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestSimpleSignMessageWithoutRootElement(t *testing.T) { |
| 22 | e := spcovSetup(t) |
| 23 | m := simpleSignMsg{param: "SAMLResponse", xml: []byte("<!-- nothing -->"), sigAlg: dsig.RSASHA256SignatureMethod, key: e.idpKey} |
| 24 | req := simpleSignPost(t, e.sp.SloURL.String(), m.values(t)) |
| 25 | req.Method = http.MethodPost |
| 26 | assert.Check(t, is.Error(spcovPrivateErr(t, e.sp.ValidateLogoutResponseRequest(req)), "invalid xml: no root")) |
| 27 | } |
nothing calls this directly
no test coverage detected