Use etreeutils.NSSelectOne to select Assertion element

This commit is contained in:
Phu Kieu
2017-03-22 16:56:25 -07:00
parent 4b457d8c82
commit 6f9ef961bb
4 changed files with 22 additions and 2 deletions

View File

@@ -86,6 +86,10 @@ func TestVerify(t *testing.T) {
runVerify(t, "testdata/okta-ca.pem", "testdata/okta-resp.xml", true)
}
func TestVerifyUnsignedMessageAndSignedAssertionWithRootXmlNs(t *testing.T) {
runVerify(t, "testdata/oam-ca.pem", "testdata/oam-resp.xml", true)
}
func TestVerifySignedMessageAndUnsignedAssertion(t *testing.T) {
runVerify(t, "testdata/idp-cert.pem", "testdata/idp-resp-signed-message.xml", true)
}