coheigea commented on code in PR #3458:
URL: https://github.com/apache/cxf/pull/3458#discussion_r3975999597
##########
systests/ws-security/src/test/java/org/apache/cxf/systest/ws/action/ActionTest.java:
##########
@@ -246,25 +246,32 @@ public void testEncryptedPassword() throws Exception {
return;
}
- SpringBusFactory bf = new SpringBusFactory();
- URL busFile = ActionTest.class.getResource(
- JavaUtils.isFIPSEnabled()
- ? "client-fips.xml" : "client.xml");
-
- Bus bus = bf.createBus(busFile.toString());
- BusFactory.setDefaultBus(bus);
- BusFactory.setThreadDefaultBus(bus);
-
- URL wsdl = ActionTest.class.getResource("DoubleItAction.wsdl");
- Service service = Service.create(wsdl, SERVICE_QNAME);
- QName portQName = new QName(NAMESPACE,
"DoubleItEncryptedPasswordPort");
- DoubleItPortType port =
- service.getPort(portQName, DoubleItPortType.class);
- updateAddressPort(port, PORT);
- assertEquals(50, port.doubleIt(25));
-
- ((java.io.Closeable)port).close();
- bus.shutdown(true);
+ try {
+ if (!JavaUtils.isFIPSEnabled()) {
Review Comment:
@reta This is pretty complicated though for something I plan to remove once
we pick up WSS4J 4.0.2 - I will convert the non-fIPS cases to the same
algorithm that the FIPS case currently uses. The current code is just to tide
us over so that I can compile the CXF main code with both versions of WSS4J for
testing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]