Author: anil.saldhana(a)jboss.com
Date: 2011-06-23 16:07:49 -0400 (Thu, 23 Jun 2011)
New Revision: 1027
Modified:
federation/trunk/picketlink-fed-core/src/test/java/org/picketlink/test/identity/federation/core/parser/saml/SAML11AssertionParserTestCase.java
federation/trunk/picketlink-fed-core/src/test/resources/parser/saml1/saml1-assertion-auth-authz.xml
Log:
more SAML11 parsing
Modified:
federation/trunk/picketlink-fed-core/src/test/java/org/picketlink/test/identity/federation/core/parser/saml/SAML11AssertionParserTestCase.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/test/java/org/picketlink/test/identity/federation/core/parser/saml/SAML11AssertionParserTestCase.java 2011-06-23
19:58:53 UTC (rev 1026)
+++
federation/trunk/picketlink-fed-core/src/test/java/org/picketlink/test/identity/federation/core/parser/saml/SAML11AssertionParserTestCase.java 2011-06-23
20:07:49 UTC (rev 1027)
@@ -207,22 +207,22 @@
assertEquals(4, attributes.size());
SAML11AttributeType attr = attributes.get(0);
assertEquals("uid", attr.getAttributeName());
-
assertEquals("http://www.ja-sig.org/products/cas/",
attr.getAttributeNamespace().toString());
+
assertEquals("http://jboss.org/test",
attr.getAttributeNamespace().toString());
assertEquals("12345", attr.get().get(0));
attr = attributes.get(1);
assertEquals("groupMembership", attr.getAttributeName());
-
assertEquals("http://www.ja-sig.org/products/cas/",
attr.getAttributeNamespace().toString());
+
assertEquals("http://jboss.org/test",
attr.getAttributeNamespace().toString());
assertEquals("uugid=middleware.staff,ou=Groups,dc=vt,dc=edu",
attr.get().get(0));
attr = attributes.get(2);
assertEquals("eduPersonAffiliation", attr.getAttributeName());
-
assertEquals("http://www.ja-sig.org/products/cas/",
attr.getAttributeNamespace().toString());
+
assertEquals("http://jboss.org/test",
attr.getAttributeNamespace().toString());
assertEquals("staff", attr.get().get(0));
attr = attributes.get(3);
assertEquals("accountState", attr.getAttributeName());
-
assertEquals("http://www.ja-sig.org/products/cas/",
attr.getAttributeNamespace().toString());
+
assertEquals("http://jboss.org/test",
attr.getAttributeNamespace().toString());
assertEquals("ACTIVE", attr.get().get(0));
SAML11AuthenticationStatementType authStat = (SAML11AuthenticationStatementType)
statements.get(1);
Modified:
federation/trunk/picketlink-fed-core/src/test/resources/parser/saml1/saml1-assertion-auth-authz.xml
===================================================================
---
federation/trunk/picketlink-fed-core/src/test/resources/parser/saml1/saml1-assertion-auth-authz.xml 2011-06-23
19:58:53 UTC (rev 1026)
+++
federation/trunk/picketlink-fed-core/src/test/resources/parser/saml1/saml1-assertion-auth-authz.xml 2011-06-23
20:07:49 UTC (rev 1027)
@@ -19,21 +19,21 @@
</SubjectConfirmation>
</Subject>
<Attribute AttributeName="uid"
-
AttributeNamespace="http://www.ja-sig.org/products/cas/">
+
AttributeNamespace="http://jboss.org/test">
<AttributeValue>12345</AttributeValue>
</Attribute>
<Attribute AttributeName="groupMembership"
-
AttributeNamespace="http://www.ja-sig.org/products/cas/">
+
AttributeNamespace="http://jboss.org/test">
<AttributeValue>
uugid=middleware.staff,ou=Groups,dc=vt,dc=edu
</AttributeValue>
</Attribute>
<Attribute AttributeName="eduPersonAffiliation"
-
AttributeNamespace="http://www.ja-sig.org/products/cas/">
+
AttributeNamespace="http://jboss.org/test">
<AttributeValue>staff</AttributeValue>
</Attribute>
<Attribute AttributeName="accountState"
-
AttributeNamespace="http://www.ja-sig.org/products/cas/">
+
AttributeNamespace="http://jboss.org/test">
<AttributeValue>ACTIVE</AttributeValue>
</Attribute>
</AttributeStatement>