Skip to Content.
Sympa Menu

mace-opensaml-users - Re: java-opensaml2 JUnit failure - org.opensaml.saml2.metadata.validator.KeyDescriptorSchemaTest

Subject: OpenSAML user discussion

List archive

Re: java-opensaml2 JUnit failure - org.opensaml.saml2.metadata.validator.KeyDescriptorSchemaTest


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: java-opensaml2 JUnit failure - org.opensaml.saml2.metadata.validator.KeyDescriptorSchemaTest
  • Date: Fri, 08 Feb 2008 23:21:29 -0500

Thanks for the reports, just now getting around to fixing them.  :-(

Actually, no, the validator itself was incorrect, the KeyDescriptor impl had changed and the validator and validator test weren't synced up.  Now fixed.


Clifford Johnson wrote:

One of the test cases “implied” by this class fails with the following details:

 

org.opensaml.saml2.metadata.validator.KeyDescriptorSchemaTest#testProperValidation

 

junit.framework.AssertionFailedError: SAML object was valid : Expected success, but validation failure raised ValidationException: Invalid value for use attribute: UNSPECIFIED

    at org.opensaml.common.BaseSAMLObjectValidatorTestCase.assertValidationPass(BaseSAMLObjectValidatorTestCase.java:92)

    at org.opensaml.common.BaseSAMLObjectValidatorTestCase.assertValidationPass(BaseSAMLObjectValidatorTestCase.java:78)

    at org.opensaml.common.BaseSAMLObjectValidatorTestCase.testProperValidation(BaseSAMLObjectValidatorTestCase.java:125)

 

This failure is caused by the use of a newly constructed KeyDescriptor in a test contained in the super class of

KeyDescriptorSchemaTest -- org.opensaml.common.BaseSAMLObjectValidatorTestCase.  In this case, it seems as if the

test should *not* have been run.  I added a static suite() method to KeyDescriptorSchemaTest to explicitly identify

the tests to perform omitting the test case defined in the super class.

 

Clifford



  • Re: java-opensaml2 JUnit failure - org.opensaml.saml2.metadata.validator.KeyDescriptorSchemaTest, Brent Putman, 02/08/2008

Archive powered by MHonArc 2.6.16.

Top of Page