You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2019/06/13 09:01:12 UTC
[cxf] branch master updated: Fixing failing tests due to cert
expiration
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push:
new c5702b0 Fixing failing tests due to cert expiration
c5702b0 is described below
commit c5702b02e3cab88198172cf9eacc48bbd935d1b3
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Thu Jun 13 10:00:50 2019 +0100
Fixing failing tests due to cert expiration
---
.../security/handler/UsernamePasswordCallback.java | 4 ++--
.../ws/security/handler/Client_Encrypt.properties | 23 --------------------
.../ws/security/handler/Client_Sign.properties | 24 ---------------------
.../ws/security/handler/Server_Decrypt.properties | 23 --------------------
.../ws/security/handler/Server_SignVerf.properties | 23 --------------------
.../ws/security/handler/client-keystore.jks | Bin 1344 -> 0 bytes
.../ws/security/handler/client-truststore.jks | Bin 639 -> 0 bytes
.../cxf/systest/ws/security/handler/client.xml | 6 +++---
.../ws/security/handler/server-keystore.jks | Bin 1345 -> 0 bytes
.../ws/security/handler/server-truststore.jks | Bin 639 -> 0 bytes
.../cxf/systest/ws/security/handler/server.xml | 6 +++---
11 files changed, 8 insertions(+), 101 deletions(-)
diff --git a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/handler/UsernamePasswordCallback.java b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/handler/UsernamePasswordCallback.java
index bef8096..d46820f 100644
--- a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/handler/UsernamePasswordCallback.java
+++ b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/handler/UsernamePasswordCallback.java
@@ -34,8 +34,8 @@ public class UsernamePasswordCallback implements CallbackHandler {
public UsernamePasswordCallback() {
passwords.put("Alice", "ecilA");
passwords.put("abcd", "dcba");
- passwords.put("clientx509v1", "storepassword");
- passwords.put("serverx509v1", "storepassword");
+ passwords.put("alice", "password");
+ passwords.put("bob", "password");
}
/**
diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Client_Encrypt.properties b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Client_Encrypt.properties
deleted file mode 100644
index e136c61..0000000
--- a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Client_Encrypt.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
-org.apache.ws.security.crypto.merlin.keystore.type=jks
-org.apache.ws.security.crypto.merlin.keystore.password=storepassword
-org.apache.ws.security.crypto.merlin.keystore.alias=serverx509v1
-org.apache.ws.security.crypto.merlin.keystore.file=org/apache/cxf/systest/ws/security/handler/client-truststore.jks
diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Client_Sign.properties b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Client_Sign.properties
deleted file mode 100644
index 5ea2456..0000000
--- a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Client_Sign.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
-org.apache.ws.security.crypto.merlin.keystore.type=jks
-org.apache.ws.security.crypto.merlin.keystore.password=storepassword
-org.apache.ws.security.crypto.merlin.keystore.alias=clientx509v1
-org.apache.ws.security.crypto.merlin.keystore.file=org/apache/cxf/systest/ws/security/handler/client-keystore.jks
-
diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Server_Decrypt.properties b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Server_Decrypt.properties
deleted file mode 100644
index 65f4500..0000000
--- a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Server_Decrypt.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
-org.apache.ws.security.crypto.merlin.keystore.type=jks
-org.apache.ws.security.crypto.merlin.keystore.password=storepassword
-org.apache.ws.security.crypto.merlin.keystore.alias=serverx509v1
-org.apache.ws.security.crypto.merlin.keystore.file=org/apache/cxf/systest/ws/security/handler/server-keystore.jks
diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Server_SignVerf.properties b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Server_SignVerf.properties
deleted file mode 100644
index a8fc16d..0000000
--- a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/Server_SignVerf.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
-org.apache.ws.security.crypto.merlin.keystore.type=jks
-org.apache.ws.security.crypto.merlin.keystore.password=storepassword
-org.apache.ws.security.crypto.merlin.keystore.alias=clientx509v1
-org.apache.ws.security.crypto.merlin.keystore.file=org/apache/cxf/systest/ws/security/handler/server-truststore.jks
diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/client-keystore.jks b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/client-keystore.jks
deleted file mode 100644
index bc744f9..0000000
Binary files a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/client-keystore.jks and /dev/null differ
diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/client-truststore.jks b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/client-truststore.jks
deleted file mode 100644
index 216bddb..0000000
Binary files a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/client-truststore.jks and /dev/null differ
diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/client.xml b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/client.xml
index 18bc6d1..6b529ba 100644
--- a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/client.xml
+++ b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/client.xml
@@ -28,9 +28,9 @@
<map>
<entry key="action" value="UsernameToken Timestamp Signature"/>
<entry key="passwordType" value="PasswordDigest"/>
- <entry key="user" value="clientx509v1"/>
+ <entry key="user" value="alice"/>
<entry key="passwordCallbackClass" value="org.apache.cxf.systest.ws.security.handler.UsernamePasswordCallback"/>
- <entry key="signaturePropFile" value="org/apache/cxf/systest/ws/security/handler/Client_Sign.properties"/>
+ <entry key="signaturePropFile" value="alice.properties"/>
<entry key="signatureKeyIdentifier" value="DirectReference"/>
<entry key="signatureParts" value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
</map>
@@ -42,7 +42,7 @@
<entry key="action" value="UsernameToken Timestamp Signature"/>
<entry key="passwordType" value="PasswordText"/>
<entry key="passwordCallbackClass" value="org.apache.cxf.systest.ws.security.handler.UsernamePasswordCallback"/>
- <entry key="signaturePropFile" value="org/apache/cxf/systest/ws/security/handler/Client_Encrypt.properties"/>
+ <entry key="signaturePropFile" value="cxfca.properties"/>
</map>
</constructor-arg>
</bean>
diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/server-keystore.jks b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/server-keystore.jks
deleted file mode 100644
index 22fd44e..0000000
Binary files a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/server-keystore.jks and /dev/null differ
diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/server-truststore.jks b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/server-truststore.jks
deleted file mode 100644
index 2447028..0000000
Binary files a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/server-truststore.jks and /dev/null differ
diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/server.xml b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/server.xml
index 8248280..752ffbb 100644
--- a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/server.xml
+++ b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/security/handler/server.xml
@@ -29,7 +29,7 @@
<entry key="action" value="UsernameToken Timestamp Signature"/>
<entry key="passwordType" value="PasswordDigest"/>
<entry key="passwordCallbackClass" value="org.apache.cxf.systest.ws.security.handler.UsernamePasswordCallback"/>
- <entry key="signaturePropFile" value="org/apache/cxf/systest/ws/security/handler/Server_SignVerf.properties"/>
+ <entry key="signaturePropFile" value="cxfca.properties"/>
</map>
</constructor-arg>
</bean>
@@ -38,9 +38,9 @@
<map>
<entry key="action" value="UsernameToken Timestamp Signature"/>
<entry key="passwordType" value="PasswordText"/>
- <entry key="user" value="serverx509v1"/>
+ <entry key="user" value="bob"/>
<entry key="passwordCallbackClass" value="org.apache.cxf.systest.ws.security.handler.UsernamePasswordCallback"/>
- <entry key="signaturePropFile" value="org/apache/cxf/systest/ws/security/handler/Server_Decrypt.properties"/>
+ <entry key="signaturePropFile" value="bob.properties"/>
<entry key="signatureKeyIdentifier" value="DirectReference"/>
<entry key="signatureParts" value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
</map>