Author: anil.saldhana(a)jboss.com
Date: 2011-01-31 20:01:19 -0500 (Mon, 31 Jan 2011)
New Revision: 693
Modified:
federation/trunk/picketlink-fed-core/src/test/java/org/picketlink/test/identity/federation/core/saml/v2/metadata/SAMLMetadataParsingUnitTestCase.java
Log:
add check on cert issuer dn
Modified:
federation/trunk/picketlink-fed-core/src/test/java/org/picketlink/test/identity/federation/core/saml/v2/metadata/SAMLMetadataParsingUnitTestCase.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/test/java/org/picketlink/test/identity/federation/core/saml/v2/metadata/SAMLMetadataParsingUnitTestCase.java 2011-01-31
23:11:17 UTC (rev 692)
+++
federation/trunk/picketlink-fed-core/src/test/java/org/picketlink/test/identity/federation/core/saml/v2/metadata/SAMLMetadataParsingUnitTestCase.java 2011-02-01
01:01:19 UTC (rev 693)
@@ -60,5 +60,6 @@
KeyDescriptorType keyDescriptor = idp.getKeyDescriptor().get(0);
X509Certificate cert = SAMLMetadataUtil.getCertificate(keyDescriptor);
Assert.assertNotNull(cert);
+ Assert.assertEquals( "CN=test, OU=OpenSSO, O=Sun, L=Santa Clara,
ST=California, C=US", cert.getIssuerDN().getName() );
}
}
\ No newline at end of file