cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Fixing failing test with restricted security policies installed
Date Wed, 28 Jan 2015 16:59:58 GMT
Repository: cxf
Updated Branches:
  refs/heads/master d021b9041 -> e5e222baf


Fixing failing test with restricted security policies installed


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/e5e222ba
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e5e222ba
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e5e222ba

Branch: refs/heads/master
Commit: e5e222baf93397dd33c4c7062a14e891061d3bd9
Parents: d021b90
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Jan 28 16:59:30 2015 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Jan 28 16:59:30 2015 +0000

----------------------------------------------------------------------
 .../systest/ws/fault/ModifiedRequestTest.java   | 23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/e5e222ba/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/ModifiedRequestTest.java
----------------------------------------------------------------------
diff --git a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/ModifiedRequestTest.java
b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/ModifiedRequestTest.java
index 7205ce5..af38d6e 100644
--- a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/ModifiedRequestTest.java
+++ b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/fault/ModifiedRequestTest.java
@@ -59,6 +59,9 @@ public class ModifiedRequestTest extends AbstractBusClientServerTestBase
{
     private static final String NAMESPACE = "http://www.example.org/contract/DoubleIt";
     private static final QName SERVICE_QNAME = new QName(NAMESPACE, "DoubleItService");
 
+    private static boolean unrestrictedPoliciesInstalled = 
+        SecurityTestUtil.checkUnrestrictedPoliciesInstalled();
+    
     @BeforeClass
     public static void startServers() throws Exception {
         assertTrue(
@@ -77,6 +80,10 @@ public class ModifiedRequestTest extends AbstractBusClientServerTestBase
{
 
     @org.junit.Test
     public void testModifiedSignedTimestamp() throws Exception {
+        
+        if (!unrestrictedPoliciesInstalled) {
+            return;
+        }
 
         SpringBusFactory bf = new SpringBusFactory();
         URL busFile = ModifiedRequestTest.class.getResource("client.xml");
@@ -115,6 +122,10 @@ public class ModifiedRequestTest extends AbstractBusClientServerTestBase
{
     
     @org.junit.Test
     public void testModifiedSignature() throws Exception {
+        
+        if (!unrestrictedPoliciesInstalled) {
+            return;
+        }
 
         SpringBusFactory bf = new SpringBusFactory();
         URL busFile = ModifiedRequestTest.class.getResource("client.xml");
@@ -153,6 +164,10 @@ public class ModifiedRequestTest extends AbstractBusClientServerTestBase
{
     
     @org.junit.Test
     public void testUntrustedSignature() throws Exception {
+        
+        if (!unrestrictedPoliciesInstalled) {
+            return;
+        }
 
         SpringBusFactory bf = new SpringBusFactory();
         URL busFile = ModifiedRequestTest.class.getResource("client-untrusted.xml");
@@ -182,6 +197,10 @@ public class ModifiedRequestTest extends AbstractBusClientServerTestBase
{
     
     @org.junit.Test
     public void testModifiedEncryptedKey() throws Exception {
+        
+        if (!unrestrictedPoliciesInstalled) {
+            return;
+        }
 
         SpringBusFactory bf = new SpringBusFactory();
         URL busFile = ModifiedRequestTest.class.getResource("client.xml");
@@ -220,6 +239,10 @@ public class ModifiedRequestTest extends AbstractBusClientServerTestBase
{
     
     @org.junit.Test
     public void testModifiedEncryptedSOAPBody() throws Exception {
+        
+        if (!unrestrictedPoliciesInstalled) {
+            return;
+        }
 
         SpringBusFactory bf = new SpringBusFactory();
         URL busFile = ModifiedRequestTest.class.getResource("client.xml");


Mime
View raw message