This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ws-wss4j.git
The following commit(s) were added to refs/heads/master by this push: new 136e060df Fixing SamlNegativeTest to work with Opensaml 5 136e060df is described below commit 136e060dfc786c28ffe9f783ea35b30758bbdf4f Author: Colm O hEigeartaigh <cohei...@apache.org> AuthorDate: Wed Sep 20 04:07:29 2023 +0100 Fixing SamlNegativeTest to work with Opensaml 5 --- .../src/test/java/org/apache/wss4j/dom/saml/SamlNegativeTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ws-security-dom/src/test/java/org/apache/wss4j/dom/saml/SamlNegativeTest.java b/ws-security-dom/src/test/java/org/apache/wss4j/dom/saml/SamlNegativeTest.java index 30ad0a1f4..c18c967d9 100644 --- a/ws-security-dom/src/test/java/org/apache/wss4j/dom/saml/SamlNegativeTest.java +++ b/ws-security-dom/src/test/java/org/apache/wss4j/dom/saml/SamlNegativeTest.java @@ -133,7 +133,9 @@ public class SamlNegativeTest { Element envelope = signedDoc.getDocumentElement(); NodeList list = envelope.getElementsByTagNameNS(WSConstants.SAML2_NS, "Assertion"); Element assertionElement = (Element)list.item(0); - assertionElement.setAttributeNS(null, "MinorVersion", "5"); + list = assertionElement.getElementsByTagNameNS(WSConstants.SAML2_NS, "Issuer"); + Element issuer = (Element)list.item(0); + issuer.setTextContent("www.example2.com"); if (LOG.isDebugEnabled()) { LOG.debug("SAML 2 Authn Assertion (sender vouches):");