tests failing with Apache WSS4J DOM WS-Security - wss4j 2.1.1 release

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

tests failing with Apache WSS4J DOM WS-Security - wss4j 2.1.1 release

Helen Feder
Hi,
I am new to WSS4j — looking for a way to digitally sign a soap message (I am using tomcat8.0, jax-ws).
I am using Mac OS X Yosemite.
Java version java version "1.8.0_45"
I copied the policy jar files for the Unlimited Crptography to the jre/lib/security directory.
I downloaded WSS4j source (version 2.1.1).  I am using MVN 3.0.3.   
I cd to wss4j-2.1.1-source-release/wss4j-2.1.1
and do a mvn clean  install.
I see the following errors in the output —> 
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec <<< FAILURE! - in org.apache.wss4j.dom.message.EncryptionCRLTest
testEncryptionWithRevocationCheck(org.apache.wss4j.dom.message.EncryptionCRLTest)  Time elapsed: 0.021 sec  <<< FAILURE!
java.lang.AssertionError: Failure expected on a revoked certificate
at org.junit.Assert.fail(Assert.java:88)
at org.apache.wss4j.dom.message.EncryptionCRLTest.testEncryptionWithRevocationCheck(EncryptionCRLTest.java:147)



Running org.apache.wss4j.dom.message.SignatureCRLTest
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.072 sec <<< FAILURE! - in org.apache.wss4j.dom.message.SignatureCRLTest
testSignatureDirectReferenceRevocation(org.apache.wss4j.dom.message.SignatureCRLTest)  Time elapsed: 0.031 sec  <<< FAILURE!
java.lang.AssertionError: Failure expected on a revoked certificate
at org.junit.Assert.fail(Assert.java:88)
at org.apache.wss4j.dom.message.SignatureCRLTest.testSignatureDirectReferenceRevocation(SignatureCRLTest.java:141)

testSignatureDirectReferenceRevocationKeyStore(org.apache.wss4j.dom.message.SignatureCRLTest)  Time elapsed: 0.014 sec  <<< FAILURE!
java.lang.AssertionError: Failure expected on a revoked certificate
at org.junit.Assert.fail(Assert.java:88)
at org.apache.wss4j.dom.message.SignatureCRLTest.testSignatureDirectReferenceRevocationKeyStore(SignatureCRLTest.java:176)

Results :

Failed tests: 
  EncryptionCRLTest.testEncryptionWithRevocationCheck:147->Assert.fail:88 Failure expected on a revoked certificate
  SignatureCRLTest.testSignatureDirectReferenceRevocation:141->Assert.fail:88 Failure expected on a revoked certificate
  SignatureCRLTest.testSignatureDirectReferenceRevocationKeyStore:176->Assert.fail:88 Failure expected on a revoked certificate

Tests run: 477, Failures: 3, Errors: 0, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache WSS4J ...................................... SUCCESS [3.501s]
[INFO] Apache WSS4J parent ............................... SUCCESS [0.460s]
[INFO] Apache WSS4J WS-Security Bindings ................. SUCCESS [5.042s]
[INFO] Apache WSS4J WS-SecurityPolicy model .............. SUCCESS [6.237s]
[INFO] Apache WSS4J WS-Security Common ................... SUCCESS [9.402s]
[INFO] Apache WSS4J DOM WS-Security ...................... FAILURE [19.731s]
[INFO] Apache WSS4J Streaming WS-Security ................ SKIPPED
[INFO] Apache WSS4J WS-Security Integration .............. SKIPPED
[INFO] Apache WSS4J Streaming WS-SecurityPolicy .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.643s
[INFO] Finished at: Wed Jul 01 13:43:54 EDT 2015
[INFO] Final Memory: 45M/1113M


Appreciate your advice on this.
Thank you.
Helen Feder





Reply | Threaded
Open this post in threaded view
|

AW: tests failing with Apache WSS4J DOM WS-Security - wss4j 2.1.1 release

Stadelmann Josef

Helene,

 

You can also skip the tests via the command line by executing the following command:

mvn install –DskipTests

 

 

If you absolutely must, you can also use the maven.test.skip property to skip compiling the tests.

maven.test.skip is honored by Surefire, Failsafe and the Compiler Plugin.

That builds the product but skips the build of tests and also skips the tests

mvn install -Dmaven.test.skip=true

 

Hope that helps you to get a Wss4j product.

Josef

 

 

Von: Helen Feder [mailto:[hidden email]]
Gesendet: Mittwoch, 1. Juli 2015 19:50
An: [hidden email]
Betreff: tests failing with Apache WSS4J DOM WS-Security - wss4j 2.1.1 release

 

Hi,

I am new to WSS4j — looking for a way to digitally sign a soap message (I am using tomcat8.0, jax-ws).

I am using Mac OS X Yosemite.

Java version java version "1.8.0_45"

I copied the policy jar files for the Unlimited Crptography to the jre/lib/security directory.

I downloaded WSS4j source (version 2.1.1).  I am using MVN 3.0.3.   

I cd to wss4j-2.1.1-source-release/wss4j-2.1.1

and do a mvn clean  install.

I see the following errors in the output —> 

Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec <<< FAILURE! - in org.apache.wss4j.dom.message.EncryptionCRLTest
testEncryptionWithRevocationCheck(org.apache.wss4j.dom.message.EncryptionCRLTest)  Time elapsed: 0.021 sec  <<< FAILURE!
java.lang.AssertionError: Failure expected on a revoked certificate
at org.junit.Assert.fail(Assert.java:88)
at org.apache.wss4j.dom.message.EncryptionCRLTest.testEncryptionWithRevocationCheck(EncryptionCRLTest.java:147)

 

Running org.apache.wss4j.dom.message.SignatureCRLTest
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.072 sec <<< FAILURE! - in org.apache.wss4j.dom.message.SignatureCRLTest
testSignatureDirectReferenceRevocation(org.apache.wss4j.dom.message.SignatureCRLTest)  Time elapsed: 0.031 sec  <<< FAILURE!
java.lang.AssertionError: Failure expected on a revoked certificate
at org.junit.Assert.fail(Assert.java:88)
at org.apache.wss4j.dom.message.SignatureCRLTest.testSignatureDirectReferenceRevocation(SignatureCRLTest.java:141)

testSignatureDirectReferenceRevocationKeyStore(org.apache.wss4j.dom.message.SignatureCRLTest)  Time elapsed: 0.014 sec  <<< FAILURE!
java.lang.AssertionError: Failure expected on a revoked certificate
at org.junit.Assert.fail(Assert.java:88)
at org.apache.wss4j.dom.message.SignatureCRLTest.testSignatureDirectReferenceRevocationKeyStore(SignatureCRLTest.java:176)

Results :

Failed tests: 
  EncryptionCRLTest.testEncryptionWithRevocationCheck:147->Assert.fail:88 Failure expected on a revoked certificate
  SignatureCRLTest.testSignatureDirectReferenceRevocation:141->Assert.fail:88 Failure expected on a revoked certificate
  SignatureCRLTest.testSignatureDirectReferenceRevocationKeyStore:176->Assert.fail:88 Failure expected on a revoked certificate

Tests run: 477, Failures: 3, Errors: 0, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache WSS4J ...................................... SUCCESS [3.501s]
[INFO] Apache WSS4J parent ............................... SUCCESS [0.460s]
[INFO] Apache WSS4J WS-Security Bindings ................. SUCCESS [5.042s]
[INFO] Apache WSS4J WS-SecurityPolicy model .............. SUCCESS [6.237s]
[INFO] Apache WSS4J WS-Security Common ................... SUCCESS [9.402s]
[INFO] Apache WSS4J DOM WS-Security ...................... FAILURE [19.731s]
[INFO] Apache WSS4J Streaming WS-Security ................ SKIPPED
[INFO] Apache WSS4J WS-Security Integration .............. SKIPPED
[INFO] Apache WSS4J Streaming WS-SecurityPolicy .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.643s
[INFO] Finished at: Wed Jul 01 13:43:54 EDT 2015
[INFO] Final Memory: 45M/1113M

 

Appreciate your advice on this.

Thank you.
Helen Feder

 

 



 

Reply | Threaded
Open this post in threaded view
|

Re: tests failing with Apache WSS4J DOM WS-Security - wss4j 2.1.1 release

Colm O hEigeartaigh-2
In reply to this post by Helen Feder
Hi,

Yes this is a known issue. For the moment I will @Ignore those tests until the issue is fixed.

Colm.

On Wed, Jul 1, 2015 at 6:49 PM, Helen Feder <[hidden email]> wrote:
Hi,
I am new to WSS4j — looking for a way to digitally sign a soap message (I am using tomcat8.0, jax-ws).
I am using Mac OS X Yosemite.
Java version java version "1.8.0_45"
I copied the policy jar files for the Unlimited Crptography to the jre/lib/security directory.
I downloaded WSS4j source (version 2.1.1).  I am using MVN 3.0.3.   
I cd to wss4j-2.1.1-source-release/wss4j-2.1.1
and do a mvn clean  install.
I see the following errors in the output —> 
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec <<< FAILURE! - in org.apache.wss4j.dom.message.EncryptionCRLTest
testEncryptionWithRevocationCheck(org.apache.wss4j.dom.message.EncryptionCRLTest)  Time elapsed: 0.021 sec  <<< FAILURE!
java.lang.AssertionError: Failure expected on a revoked certificate
at org.junit.Assert.fail(Assert.java:88)
at org.apache.wss4j.dom.message.EncryptionCRLTest.testEncryptionWithRevocationCheck(EncryptionCRLTest.java:147)



Running org.apache.wss4j.dom.message.SignatureCRLTest
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.072 sec <<< FAILURE! - in org.apache.wss4j.dom.message.SignatureCRLTest
testSignatureDirectReferenceRevocation(org.apache.wss4j.dom.message.SignatureCRLTest)  Time elapsed: 0.031 sec  <<< FAILURE!
java.lang.AssertionError: Failure expected on a revoked certificate
at org.junit.Assert.fail(Assert.java:88)
at org.apache.wss4j.dom.message.SignatureCRLTest.testSignatureDirectReferenceRevocation(SignatureCRLTest.java:141)

testSignatureDirectReferenceRevocationKeyStore(org.apache.wss4j.dom.message.SignatureCRLTest)  Time elapsed: 0.014 sec  <<< FAILURE!
java.lang.AssertionError: Failure expected on a revoked certificate
at org.junit.Assert.fail(Assert.java:88)
at org.apache.wss4j.dom.message.SignatureCRLTest.testSignatureDirectReferenceRevocationKeyStore(SignatureCRLTest.java:176)

Results :

Failed tests: 
  EncryptionCRLTest.testEncryptionWithRevocationCheck:147->Assert.fail:88 Failure expected on a revoked certificate
  SignatureCRLTest.testSignatureDirectReferenceRevocation:141->Assert.fail:88 Failure expected on a revoked certificate
  SignatureCRLTest.testSignatureDirectReferenceRevocationKeyStore:176->Assert.fail:88 Failure expected on a revoked certificate

Tests run: 477, Failures: 3, Errors: 0, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache WSS4J ...................................... SUCCESS [3.501s]
[INFO] Apache WSS4J parent ............................... SUCCESS [0.460s]
[INFO] Apache WSS4J WS-Security Bindings ................. SUCCESS [5.042s]
[INFO] Apache WSS4J WS-SecurityPolicy model .............. SUCCESS [6.237s]
[INFO] Apache WSS4J WS-Security Common ................... SUCCESS [9.402s]
[INFO] Apache WSS4J DOM WS-Security ...................... FAILURE [19.731s]
[INFO] Apache WSS4J Streaming WS-Security ................ SKIPPED
[INFO] Apache WSS4J WS-Security Integration .............. SKIPPED
[INFO] Apache WSS4J Streaming WS-SecurityPolicy .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.643s
[INFO] Finished at: Wed Jul 01 13:43:54 EDT 2015
[INFO] Final Memory: 45M/1113M


Appreciate your advice on this.
Thank you.
Helen Feder








--
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com